/**
 * Auth Pages Styles - Login & Register
 * Kurumsal Renk: #253928
 */

:root {
    --brand-primary: #253928;
    --brand-primary-light: #3a5a3e;
    --brand-primary-dark: #1a2a1c;
    --brand-gradient: linear-gradient(135deg, #253928 0%, #3a5a3e 100%);
}

/* =====================================================
   AUTH CONTAINER
   ===================================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    padding: 40px 0;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-row {
    display: flex;
    flex-wrap: wrap;
}

/* =====================================================
   AUTH LEFT SIDE - BRANDING
   ===================================================== */

.auth-branding {
    background: var(--brand-gradient);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-branding::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.auth-branding-content {
    position: relative;
    z-index: 1;
}

.auth-branding-logo {
    margin-bottom: 40px;
}

.auth-branding-logo img {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.auth-branding h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.auth-branding p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.auth-features li i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}

/* =====================================================
   AUTH RIGHT SIDE - FORM
   ===================================================== */

.auth-form-container {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 40px;
}

.auth-form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.auth-form-header p {
    color: #666;
    font-size: 15px;
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-form .form-control:focus {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 57, 40, 0.1);
    outline: none;
}

.auth-form .form-control::placeholder {
    color: #9e9e9e;
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

/* Input with Icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-left: 48px;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    font-size: 18px;
}

.input-icon-wrapper .input-icon-right {
    left: auto;
    right: 16px;
    cursor: pointer;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    padding: 0;
}

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

/* Row Inputs */
.input-row {
    display: flex;
    gap: 16px;
}

.input-row .form-group {
    flex: 1;
}

/* =====================================================
   CHECKBOX
   ===================================================== */

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.auth-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.auth-checkbox label {
    font-weight: 400;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    cursor: pointer;
}

.auth-checkbox label a {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.auth-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn-primary {
    background: var(--brand-gradient);
    color: #fff;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 57, 40, 0.35);
}

.auth-btn-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.auth-btn-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Social Login */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 20px;
    color: #9e9e9e;
    font-size: 14px;
}

.social-login-btns {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--brand-primary);
    background: #fafafa;
}

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

/* =====================================================
   LINKS & FOOTER
   ===================================================== */

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-links a {
    color: var(--brand-primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 15px;
}

.auth-footer a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   VALIDATION
   ===================================================== */

.field-validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.validation-summary-errors {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #c53030;
}

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

@media (max-width: 991px) {
    .auth-branding {
        display: none;
    }
    
    .auth-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 20px 0;
    }
    
    .auth-card {
        border-radius: 16px;
        margin: 0 10px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-form-header h1 {
        font-size: 1.5rem;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-login-btns {
        flex-direction: column;
    }
}

/* =====================================================
   ACCOUNT PAGE STYLES
   ===================================================== */

.account-wrapper {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.account-header {
    background: var(--brand-gradient);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.account-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.account-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.account-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.account-user-details h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 5px;
    color: #fff !important;
}

.account-user-details p {
    margin: 0;
    opacity: 0.9;
    color: #fff;
}

.account-user-details p i {
    color: #fff;
}

/* Account page CTA buttons */
.account-content .btn-primary,
.account-content a.btn-primary {
    border-radius: 10px;
    padding: 10px 20px;
}

/* Password input-group — align input and toggle button */
.account-content .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.account-content .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 48px !important;
    font-size: .9rem !important;
    border-radius: 10px 0 0 10px !important;
    border-right: 0 !important;
    box-sizing: border-box !important;
}
.account-content .input-group .toggle-password {
    height: 48px;
    padding: 0 16px;
    border-radius: 0 10px 10px 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
}

/* Account Sidebar */
.account-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li,
.account-menu .nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.account-menu li:last-child,
.account-menu .nav-item:last-child {
    border-bottom: none;
}

.account-menu a,
.account-menu button,
.account-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0;
}

.account-menu a:hover,
.account-menu a.active,
.account-menu button:hover,
.account-menu button.active,
.account-menu .nav-link:hover,
.account-menu .nav-link.active {
    background: #e8f5e9;
    color: var(--brand-primary);
}

.account-menu a.active,
.account-menu button.active,
.account-menu .nav-link.active {
    border-left: 3px solid var(--brand-primary);
}

.account-menu a i,
.account-menu button i,
.account-menu .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.account-menu a.logout-link,
.account-menu .logout-link {
    color: #dc3545;
}

.account-menu a.logout-link:hover,
.account-menu .logout-link:hover {
    background: #fff5f5;
}

/* Account Content */
.account-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.account-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

/* Order Cards */
.order-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.order-number {
    font-weight: 600;
    color: #333;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.order-detail-item {
    flex: 1;
    min-width: 150px;
}

.order-detail-item label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.order-detail-item span {
    font-weight: 500;
    color: #333;
}

.order-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.order-actions a {
    color: var(--brand-primary);
    font-size: 14px;
    text-decoration: none;
    margin-right: 20px;
}

.order-actions a:hover {
    text-decoration: underline;
}

/* Address Card */
.address-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.address-card.default {
    border-color: var(--brand-primary);
    background: #f8fff9;
}

.address-default-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.address-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.address-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.address-phone {
    color: #333;
    font-size: 14px;
}

.address-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.address-actions a {
    color: var(--brand-primary);
    font-size: 14px;
    text-decoration: none;
    margin-right: 15px;
}

.address-actions a.delete-link {
    color: #dc3545;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.orders {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-icon.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.stat-icon.wishlist {
    background: #fce4ec;
    color: #c2185b;
}

.stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.stat-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

