/* =============================================
   AUTH.CSS — Login & Register Pages
   Premium Dark Design | Fully Responsive
   ============================================= */

/* ===== VIEWPORT ===== */
.auth-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090b;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* ===== BACKGROUND GRID ===== */
.auth-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ===== GLOWING ORBS ===== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.18;
    z-index: 0;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #14b8a6, #0d9488);
    top: -180px; left: -150px;
    animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #3b82f6, #1d4ed8);
    bottom: -120px; right: -100px;
    animation: orbFloat 14s ease-in-out infinite alternate-reverse;
}
.orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #8b5cf6, #6d28d9);
    top: 40%; right: 20%;
    animation: orbFloat 22s ease-in-out infinite alternate;
    opacity: 0.09;
}
@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.08); }
}

/* ===== AUTH CARD ===== */
.auth-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 0 0 1px rgba(20, 184, 166, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.4);
    animation: cardFadeIn 0.5s ease forwards;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Top teal accent line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #14b8a6, transparent);
    border-radius: 1px;
}

/* ===== LOGO ICON ===== */
.auth-logo {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-radius: 14px;
    margin: 0 auto 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 0 24px rgba(20, 184, 166, 0.45), 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== HEADER TEXT ===== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.auth-subtitle {
    font-size: 0.95rem;
    color: #71717a;
    margin: 0;
    line-height: 1.5;
}

/* ===== ERROR ALERT ===== */
.alert-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.alert-error i { font-size: 1rem; flex-shrink: 0; }

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 1.125rem;
}
.label-meta {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

/* ===== INPUTS ===== */
.input-auth {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #fafafa;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.input-auth::placeholder { color: #52525b; }
.input-auth:focus {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.04);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}
.input-auth:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== PASSWORD ROW ===== */
.pw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.pw-row .label-meta { margin: 0; }
.forgot-link {
    font-size: 0.8rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: #14b8a6; }

/* ===== PASSWORD TOGGLE ===== */
.input-wrap { position: relative; }
.input-wrap .input-auth { padding-right: 3rem; }
.pw-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #52525b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.2s;
    line-height: 1;
}
.pw-toggle:hover { color: #a1a1aa; }

/* ===== CHECKBOX ROW ===== */
.check-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}
.check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #14b8a6;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.check-row label {
    font-size: 0.875rem;
    color: #71717a;
    cursor: pointer;
    line-height: 1.4;
}
.terms-row {
    align-items: flex-start;
    margin-bottom: 1.375rem;
}
.terms-row label a {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
}
.terms-row label a:hover { text-decoration: underline; }

/* ===== SUBMIT BUTTON ===== */
.btn-auth-primary {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: #14b8a6;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3), 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.01em;
    margin-top: 0.25rem;
    position: relative;
    overflow: hidden;
}
.btn-auth-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-auth-primary:hover::before { left: 100%; }
.btn-auth-primary:hover {
    background: #0d9488;
    box-shadow: 0 0 28px rgba(20, 184, 166, 0.45), 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}
.btn-auth-primary:active { transform: translateY(0); }

/* ===== FOOTER LINK ===== */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-link {
    font-size: 0.9rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link:hover { color: #a1a1aa; }
.auth-link strong {
    color: #14b8a6;
    font-weight: 700;
    transition: color 0.2s;
}
.auth-link:hover strong { color: #2dd4bf; }



/* ===== OR DIVIDER (social login) ===== */
.auth-or {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1.5rem 0 1.25rem;
    color: #3f3f46;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-or::before,
.auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* ===== GOOGLE BUTTON ===== */
.btn-google {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;

    /* Dark glass base */
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    color: #d4d4d8;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;

    /* Gradient border via pseudo-element */
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}

/* Shimmer sweep on hover */
.btn-google::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.07),
        transparent
    );
    transition: left 0.55s ease;
    pointer-events: none;
}
.btn-google:hover::before { left: 100%; }

/* Gradient glow ring on hover */
.btn-google::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        rgba(66,133,244,0.5),   /* Google Blue  */
        rgba(234,67,53,0.4),    /* Google Red   */
        rgba(251,188,5,0.4),    /* Google Yellow*/
        rgba(52,168,83,0.4)     /* Google Green */
    );
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.btn-google:hover::after { opacity: 1; }

.btn-google:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-google:active {
    transform: translateY(0) scale(0.99);
    box-shadow: none;
}

/* Google G logo icon */
.btn-google svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: transform 0.25s;
}
.btn-google:hover svg { transform: scale(1.1) rotate(-3deg); }




/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-viewport { padding: 1rem 0.75rem; align-items: flex-start; padding-top: 2rem; }
    .auth-card { padding: 2rem 1.5rem; border-radius: 20px; }
    .auth-title { font-size: 1.5rem; }
}
@media (max-width: 360px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .auth-title { font-size: 1.35rem; }
    .input-auth { font-size: 0.875rem; padding: 0.75rem 0.875rem; }
}
/* Tall screens */
@media (min-height: 800px) {
    .auth-viewport { align-items: center; }
}
