/* Shared design for customer & affiliate login/register pages */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2.5rem 1rem;
    background:
        radial-gradient(circle at 12% 8%, rgba(88, 86, 214, 0.12), transparent 45%),
        radial-gradient(circle at 88% 92%, rgba(88, 86, 214, 0.10), transparent 45%),
        var(--cui-tertiary-bg, #f4f5fb);
}

.auth-card {
    width: 100%;
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 60px -24px rgba(47, 45, 134, 0.35), 0 6px 18px -10px rgba(0, 0, 0, 0.12);
    animation: authFadeUp 0.5s ease both;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    color: #fff;
    background: linear-gradient(160deg, #6a68e0 0%, #5856d6 45%, #2f2d86 100%);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-panel::before {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -80px;
}

.auth-brand-panel::after {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -50px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.auth-brand-badge svg {
    width: 24px;
    height: 24px;
}

.auth-brand-panel h2 {
    font-weight: 700;
    font-size: 1.65rem;
    margin-bottom: 0.6rem;
}

.auth-brand-panel p.lead {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    opacity: 0.92;
}

.auth-feature-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.auth-form-panel {
    padding: 3rem 2.5rem;
    background: var(--cui-body-bg, #fff);
}

.auth-form-panel h1 {
    font-weight: 700;
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
}

.auth-form-panel .auth-subtitle {
    color: var(--cui-secondary-color, #6b7280);
    margin-bottom: 1.75rem;
    font-size: 0.925rem;
}

.icon-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--cui-border-color, #d8dbe6);
    border-radius: 0.65rem;
    overflow: hidden;
    background: var(--cui-body-bg, #fff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.icon-input:focus-within {
    border-color: #5856d6;
    box-shadow: 0 0 0 4px rgba(88, 86, 214, 0.15);
}

.icon-input .icon-input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    color: #6260c9;
    background: var(--cui-tertiary-bg, #f4f5fb);
}

.icon-input .icon-input-addon svg {
    width: 18px;
    height: 18px;
}

.icon-input input {
    border: none;
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    background: transparent;
    color: var(--cui-body-color);
}

.icon-input input:focus {
    outline: none;
    box-shadow: none;
}

.icon-input .password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--cui-secondary-color, #8b8fa3);
    cursor: pointer;
}

.icon-input .password-toggle svg {
    width: 18px;
    height: 18px;
}

.form-field {
    margin-bottom: 1.15rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--cui-body-color);
}

.btn-auth-primary {
    background: linear-gradient(135deg, #6a68e0, #4c4ac0);
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 0.65rem;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -10px rgba(76, 74, 192, 0.55);
    color: #fff;
}

.auth-form-panel .btn-link {
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .auth-form-panel,
    .auth-brand-panel {
        padding: 2.25rem 1.5rem;
    }
}
