/* ============================================================
   UNIFIED AUTH PAGE STYLES
   ============================================================ */

body {
    background: var(--bg-gradient-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

/* Glass Card Container */
.auth-box {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(135deg,
        rgba(92, 107, 255, 0.12),
        rgba(71, 200, 255, 0.08)
    );
    border: 1px solid rgba(118, 131, 255, 0.35);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 1px 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

/* Page Title */
.auth-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00f2ff, #84ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.auth-subtitle {
    text-align: center;
    color: #cfe8ff;
    margin: -4px 0 24px 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c4d1ff;
    margin-bottom: 4px;
    display: block;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 12px 16px;
    border: 1px solid rgba(118, 131, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #f7fbff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
}

.auth-form input:focus {
    border-color: rgba(118, 131, 255, 0.6);
    box-shadow: 0 0 20px rgba(92, 107, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.auth-form input::placeholder {
    color: #8a92b3;
}

/* Password Toggle */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 1.2rem;
    user-select: none;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c4d1ff;
    font-size: 0.9rem;
    margin-top: -4px;
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Submit Button */
.auth-submit {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff9500, #ff6b6b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(92, 107, 255, 0.3);
    margin-top: 8px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(92, 107, 255, 0.5);
}

/* Secondary Actions */
.auth-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.btn-secondary {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #dff6ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #c4d1ff;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #00f2ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #5c6bff;
    text-decoration: underline;
}

.auth-footer .hint {
    display: inline-block;
    margin-top: 6px;
    color: #bcd9ff;
    font-size: 0.85rem;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}

.forgot-password a {
    color: #00f2ff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #5c6bff;
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 16px;
}

.flash-messages .error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.flash-messages .info,
.flash-messages .success {
    background: rgba(138, 247, 179, 0.2);
    border: 1px solid rgba(138, 247, 179, 0.4);
    color: #8af7b3;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Back to Launch Pad Button */
.back-to-launch {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(92, 107, 255, 0.15), rgba(71, 200, 255, 0.15));
    border: 2px solid rgba(118, 131, 255, 0.4);
    border-radius: 50px;
    color: #00f2ff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 242, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.back-to-launch:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 242, 255, 0.4);
    border-color: rgba(0, 242, 255, 0.6);
}

.back-to-launch:active {
    transform: translateY(-2px) scale(1.02);
}
