/* ========================================
   AUTH PAGES STYLING
   ======================================== */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #718096;
}

/* ========================================
   INLINE FORM ELEMENTS
   ======================================== */
.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    user-select: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* ========================================
   LINKS
   ======================================== */
.link-primary {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.link-primary:hover {
    color: #764ba2;
    text-decoration: underline;
}

.link-secondary {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-secondary:hover {
    color: #667eea;
}

/* ========================================
   MESSAGES
   ======================================== */
.error-message {
    padding: 0.875rem 1rem;
    background: rgba(255, 95, 86, 0.1);
    border: 1px solid rgba(255, 95, 86, 0.3);
    border-radius: 8px;
    color: #ff5f56;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.success-message {
    padding: 0.875rem 1rem;
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    border-radius: 8px;
    color: #27c93f;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ========================================
   AUTH FOOTER
   ======================================== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-footer p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #718096;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(102, 126, 234, 0.1);
}

.divider span {
    padding: 0 1rem;
}

/* ========================================
   SOCIAL LOGIN
   ======================================== */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   PASSWORD STRENGTH INDICATOR
   ======================================== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #ff5f56;
}

.strength-fill.medium {
    width: 66%;
    background: #ffbd2e;
}

.strength-fill.strong {
    width: 100%;
    background: #27c93f;
}

.strength-text {
    color: #718096;
    font-size: 0.85rem;
}

.strength-text.weak {
    color: #ff5f56;
}

.strength-text.medium {
    color: #ffbd2e;
}

.strength-text.strong {
    color: #27c93f;
}

/* ========================================
   LOADING STATE
   ======================================== */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .form-group-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
