.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-brand {
    position: relative;
    padding: 3rem 2.5rem;
    color: #fff;
    background: radial-gradient(600px 300px at 20% 10%, rgba(255, 255, 255, .15), transparent 60%),
        linear-gradient(135deg, var(--nav-accent) 0%, var(--nav-accent-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .35;
    pointer-events: none;
}

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

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

.auth-brand-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .9rem;
}

.auth-brand-content p {
    opacity: .9;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .95rem;
    opacity: .95;
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border-radius: 8px;
    flex-shrink: 0;
}

.auth-feature-icon .ti {
    font-size: 1.1rem;
    color: #fff;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    font-size: .85rem;
    opacity: .8;
}

.auth-form {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: .35rem;
}

.auth-form-header p {
    color: #6b7280;
    font-size: .95rem;
    margin: 0;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.1rem;
}

.auth-input-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .4rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.15rem;
    pointer-events: none;
}

.auth-password-toggle .ti {
    font-size: 1.1rem;
}

.auth-submit .ti {
    font-size: 1.15rem;
}

.ti-spin {
    animation: ti-spin 1s linear infinite;
}

@keyframes ti-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-input-wrap .form-control {
    height: 48px;
    padding-left: 42px;
    padding-right: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: .95rem;
    background: #f9fafb;
    transition: all .2s ease;
}

.auth-input-wrap .form-control:focus {
    background: #fff;
    border-color: var(--nav-accent);
    box-shadow: 0 0 0 4px rgba(var(--nav-accent-rgb), .1);
}

.auth-input-wrap.has-toggle .form-control {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.auth-password-toggle:hover {
    color: var(--nav-accent);
    background: rgba(var(--nav-accent-rgb), .06);
}

.auth-error {
    display: block;
    color: var(--bs-danger);
    font-size: .8rem;
    margin-top: .35rem;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .25rem 0 1.5rem;
    font-size: .85rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #4b5563;
    user-select: none;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--nav-accent);
    cursor: pointer;
}

.auth-forgot {
    color: var(--nav-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--nav-accent-dark);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--nav-accent) 0%, var(--nav-accent-dark) 100%);
    box-shadow: 0 8px 20px rgba(var(--nav-accent-rgb), .25);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(var(--nav-accent-rgb), .32);
}

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

.success-message {
    color: #0f7b3a;
    background: #e6f7ec;
    border: 1px solid #b7e5c7;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

@media (max-width: 860px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .auth-brand {
        min-height: auto;
        padding: 2.25rem 2rem;
    }

    .auth-form {
        padding: 2.25rem 1.75rem;
    }
}
