/* Auth pages – Sign In, Sign Up, Forgot Password */

.section-auth {
    background: linear-gradient(160deg, #f4f6f8 0%, #eef1f4 45%, #f8f9fb 100%);
    min-height: 520px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0 30px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-card--wide {
    max-width: 920px;
    display: flex;
    flex-wrap: wrap;
}

.auth-card__aside {
    flex: 1 1 320px;
    background: linear-gradient(145deg, #1a2433 0%, #243044 55%, #1e2a3a 100%);
    color: #fff;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.auth-card__aside::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(51, 122, 183, 0.12);
}

.auth-card__aside::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(51, 122, 183, 0.08);
}

.auth-card__aside-inner {
    position: relative;
    z-index: 1;
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #337ab7;
    margin-bottom: 18px;
}

.auth-card__badge i {
    font-size: 14px;
}

.auth-card__aside h2 {
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 14px;
    font-weight: 700;
}

.auth-card__aside p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

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

.auth-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.auth-card__features li i {
    color: #337ab7;
    margin-top: 3px;
    flex-shrink: 0;
}

.auth-card__body {
    flex: 1 1 380px;
    padding: 42px 40px 40px;
}

.auth-card__header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-card--wide .auth-card__header {
    text-align: left;
}

.auth-card__header h1 {
    font-size: 26px;
    margin: 0 0 8px;
    color: #1a2433;
    font-weight: 700;
}

.auth-card__header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.auth-form .form-results {
    margin-bottom: 16px;
}

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

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

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

.auth-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #337ab7;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 5px;
    font-size: 15px;
    color: #1f2937;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    box-shadow: none;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:hover {
    border-color: #d1d5db;
    background: #fff;
}

.auth-input:focus {
    border-color: #337ab7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
}

.auth-input-wrap--password .auth-input {
    padding-right: 52px;
}

.auth-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
    padding: 0;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: #337ab7;
    outline: none;
}

.auth-password-toggle .fa-eye-slash {
    display: none;
}

.auth-password-toggle.is-visible .fa-eye {
    display: none;
}

.auth-password-toggle.is-visible .fa-eye-slash {
    display: inline-block;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #337ab7;
    cursor: pointer;
    margin: 0;
}

.auth-link {
    font-size: 14px;
    font-weight: 600;
    color: #337ab7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover,
.auth-link:focus {
    color: #1863AB;
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit i {
    font-size: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.auth-footer-text a {
    font-weight: 700;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.auth-info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #eef5fb;
    border: 1px solid #c5d9ed;
    border-radius: 5px;
    margin-bottom: 24px;
}

.auth-info-box i {
    color: #337ab7;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-info-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #3d5a73;
}

.auth-strength {
    margin-top: 8px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.auth-strength.is-active {
    display: block;
}

.auth-strength__bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.auth-strength__bar.weak { width: 33%; background: #ef4444; }
.auth-strength__bar.fair { width: 66%; background: #f59e0b; }
.auth-strength__bar.strong { width: 100%; background: #22c55e; }

/* Support form */
.auth-form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    margin-bottom: 0;
    align-items: start;
}

.auth-required {
    color: #ef4444;
}

.auth-input-wrap--select .auth-input-icon {
    pointer-events: none;
}

.auth-select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.auth-textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 5px;
    font-size: 15px;
    color: #1f2937;
    background: #fafbfc;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-textarea:focus {
    outline: none;
    border-color: #337ab7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.12);
}

.support-alert {
    margin-bottom: 20px;
}

.support-alert__list {
    margin: 0;
    padding-left: 18px;
}

.support-success {
    text-align: center;
    padding: 20px 0 8px;
}

.auth-card--wide .support-success {
    text-align: left;
}

.support-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.auth-card--wide .support-success__icon {
    margin-left: 0;
}

.support-success h1 {
    font-size: 26px;
    margin: 0 0 12px;
    color: #1a2433;
}

.support-success__message {
    font-size: 17px;
    font-weight: 600;
    color: #166534;
    margin: 0 0 12px;
    line-height: 1.6;
}

.support-success__note {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px;
}

.support-success__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

@media (max-width: 767px) {
    .auth-card__aside,
    .auth-card__body {
        padding: 32px 24px;
    }

    .auth-card__aside h2 {
        font-size: 22px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-form-row--split {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Checkout product summary */
.checkout-product-summary {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.checkout-product-summary img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.checkout-product-summary h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.4;
}

.checkout-product-summary__price {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.9);
}

.checkout-product-summary__price del {
    opacity: 0.7;
    margin-right: 8px;
}

.checkout-product-summary__price strong {
    font-size: 20px;
}

.checkout-product-summary__note {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.auth-form-group label .optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}
