/* ============================================
   IGNITE — Authentication Styles
   Login & Signup Screens
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Background Wavy Canvas (same as hero) */
.auth-page .wavy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 2;
    animation: authFadeIn 0.8s var(--ease-smooth);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-link {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-logo {
    height: 117px;
    width: auto;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    --gs-size: 1.5rem;
}

.auth-title.gradual-spacing {
    justify-content: center;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Form Styling */
.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
}

.auth-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Helper Links */
.form-helpers {
    display: flex;
    justify-content: flex-end;
}

.auth-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--accent-primary);
}

/* Submit Button */
.btn-auth {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s var(--ease-bounce);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-3px);
    background: var(--accent-secondary);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Footer / Switch flow */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.auth-footer a:hover {
    color: var(--accent-secondary);
    gap: 5px;
}

.auth-footer a::after {
    content: ' ›';
    font-size: 1.1rem;
    transition: margin 0.3s;
}

.auth-footer a:hover::after {
    margin-left: 2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
}