/* ===========================================
   AUTH COMPONENTS - PROFESSIONAL MORPHO DESIGN
   =========================================== */

/* ===========================================
   PAGE CONTAINER
   =========================================== */

.page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===========================================
   PAGE HEADER
   =========================================== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */

.content-section {
    width: 100%;
    max-width: 600px;
}

/* ===========================================
   AUTH CARD - GLASSMORPHISM DESIGN
   =========================================== */

.auth-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===========================================
   AUTH HEADER
   =========================================== */

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

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* ===========================================
   ERROR MESSAGES
   =========================================== */

.error-messages {
    background: linear-gradient(135deg, 
        rgba(254, 242, 242, 0.8) 0%, 
        rgba(254, 226, 226, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 202, 202, 0.6);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

/* ===========================================
   AUTH FORM
   =========================================== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===========================================
   FORM GROUPS
   =========================================== */

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

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

/* ===========================================
   FORM INPUTS
   =========================================== */

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #2d3748;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    width: 90%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #718096;
    opacity: 0.8;
}

/* ===========================================
   PASSWORD INPUT
   =========================================== */

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: #718096;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #4a5568;
}

.password-toggle::before {
    content: "👁️";
}

.password-toggle.showing::before {
    content: "🙈";
}

/* ===========================================
   FORM OPTIONS
   =========================================== */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    border-radius: 4px;
    margin: 0;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===========================================
   AUTH SUBMIT BUTTON
   =========================================== */

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-submit-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===========================================
   AUTH DIVIDER
   =========================================== */

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.auth-divider span {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===========================================
   SOCIAL AUTH
   =========================================== */

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.btn-social.btn-google:hover {
    background: linear-gradient(135deg, 
        rgba(234, 67, 53, 0.1) 0%, 
        rgba(251, 188, 4, 0.1) 100%);
    border-color: rgba(234, 67, 53, 0.3);
}

.btn-social.btn-facebook:hover {
    background: linear-gradient(135deg, 
        rgba(24, 119, 242, 0.1) 0%, 
        rgba(66, 103, 178, 0.1) 100%);
    border-color: rgba(24, 119, 242, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* ===========================================
   AUTH FOOTER
   =========================================== */

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
}

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

.auth-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===========================================
   LOADING STATES
   =========================================== */

.auth-form.loading .auth-submit-btn {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-form.loading .form-group input {
    opacity: 0.6;
    pointer-events: none;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1024px) {
    .page-container {
        padding: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
        min-height: auto;
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .social-auth {
        gap: 0.75rem;
    }
    
    .btn-social {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0.75rem;
    }
    
    .page-header {
        padding: 1.25rem 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .auth-header h2 {
        font-size: 1.2rem;
    }
    
    .auth-header p {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .auth-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-social {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
}