/**
 * Editorial Auth Pages Styling
 * Login, Register, Forgot Password - Consistent with Editorial Theme
 */

/* ========================================
   AUTH SECTION LAYOUT
   ======================================== */

.editorial-auth-section {
    background: linear-gradient(135deg, #fdfbf7 0%, #fafafa 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.editorial-auth-wrapper {
    max-width: 520px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 48px;
}

.editorial-auth-wrapper-wide {
    max-width: 720px;
}

/* ========================================
   AUTH HEADER
   ======================================== */

.editorial-auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.editorial-auth-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.editorial-auth-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   AUTH FORM
   ======================================== */

.editorial-auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.editorial-auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editorial-auth-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
    margin: 0;
}

.editorial-auth-input {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fafafa;
    color: #1a1a1a;
}

.editorial-auth-input:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.05);
}

.editorial-auth-input::placeholder {
    color: #999999;
}

/* ========================================
   AUTH OPTIONS (Remember Me & Forgot Password)
   ======================================== */

.editorial-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.editorial-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    margin: 0;
}

.editorial-auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.editorial-auth-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.editorial-auth-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ========================================
   AUTH BUTTONS
   ======================================== */

.editorial-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.editorial-auth-button-primary,
.editorial-auth-button-secondary {
    width: 100%;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
}

/* ========================================
   AUTH ALERTS
   ======================================== */

.editorial-auth-alert {
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.editorial-auth-alert-info {
    background-color: #e8f4fd;
    border: 1px solid #b8d9f3;
    color: #1a5490;
}

.editorial-auth-alert-danger {
    background-color: #fdecea;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* ========================================
   FORM FIELDS STYLING (Register Form)
   ======================================== */

.editorial-auth-form .form-group,
.editorial-auth-form fieldset {
    margin-bottom: 20px;
}

.editorial-auth-form .form-group label,
.editorial-auth-form fieldset legend {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 8px;
    display: block;
}

.editorial-auth-form .form-control,
.editorial-auth-form input[type="text"],
.editorial-auth-form input[type="email"],
.editorial-auth-form input[type="password"],
.editorial-auth-form select,
.editorial-auth-form textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fafafa;
    color: #1a1a1a;
    width: 100%;
}

.editorial-auth-form .form-control:focus,
.editorial-auth-form input:focus,
.editorial-auth-form select:focus,
.editorial-auth-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.05);
}

.editorial-auth-form fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    background-color: #fafafa;
}

.editorial-auth-form fieldset legend {
    font-size: 16px;
    font-weight: 600;
    padding: 0 12px;
    width: auto;
}

.editorial-auth-form .checkbox label,
.editorial-auth-form .optin label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.editorial-auth-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1a1a1a;
    flex-shrink: 0;
}

.editorial-auth-form .description {
    font-size: 13px;
    color: #666666;
    margin-top: 6px;
    line-height: 1.5;
}

/* Tag-it styling for interests */
.editorial-auth-form .tag-it {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background-color: #fafafa;
    padding: 8px;
    min-height: 48px;
}

.editorial-auth-form .tag-it:focus-within {
    border-color: #1a1a1a;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.05);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .editorial-auth-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .editorial-auth-wrapper {
        padding: 36px 28px;
        border-radius: 12px;
        max-width: 100%;
        margin: 0 20px;
    }
    
    .editorial-auth-wrapper-wide {
        max-width: 100%;
    }
    
    .editorial-auth-header {
        margin-bottom: 32px;
    }
    
    .editorial-auth-title {
        font-size: 32px;
    }
    
    .editorial-auth-subtitle {
        font-size: 14px;
    }
    
    .editorial-auth-form {
        gap: 20px;
    }
    
    .editorial-auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .editorial-auth-section {
        padding: 40px 0;
    }
    
    .editorial-auth-wrapper {
        padding: 28px 20px;
        margin: 0 16px;
    }
    
    .editorial-auth-title {
        font-size: 28px;
    }
    
    .editorial-auth-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .editorial-auth-form .form-control,
    .editorial-auth-form input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
