/**
 * BTMS Auth pages — login, forgot password, reset
 */

.btms-auth-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 20% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 45%),
                linear-gradient(145deg, #050505 0%, #0f0d0a 40%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.btms-auth-layout {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 560px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.btms-auth-aside {
    flex: 1;
    background: linear-gradient(160deg, #0a0a0a 0%, #15120c 50%, #0a0a0a 100%);
    border-right: 1px solid rgba(201, 162, 39, 0.15);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.btms-auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

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

.btms-auth-aside .btms-logo-img--auth {
    height: 100px;
    max-width: 280px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.25));
}

.btms-auth-aside h2 {
    color: #fff;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.btms-auth-aside .lead {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btms-auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btms-auth-features li i {
    color: var(--btms-gold, #c9a227);
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.btms-auth-card {
    flex: 0 0 420px;
    max-width: 100%;
    background: #fff;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btms-auth-card .btms-logo-img--auth {
    height: 72px;
    max-width: 200px;
    margin: 0 auto 1rem;
    display: block;
}

.btms-auth-card h4 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}

.btms-auth-card .subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.btms-auth-card .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

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

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

.btms-auth-input-wrap .form-control {
    padding-left: 2.6rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btms-auth-input-wrap .form-control:focus {
    border-color: var(--btms-gold, #c9a227);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

.btms-auth-pass-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0.25rem 0.5rem;
    z-index: 2;
    cursor: pointer;
}

.btms-auth-pass-toggle:hover {
    color: var(--btms-gold, #c9a227);
}

.btms-auth-card .btn-login {
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #a8841a 0%, #c9a227 100%);
    border: none;
    color: #0a0a0a;
    transition: transform 0.15s, box-shadow 0.2s;
}

.btms-auth-card .btn-login:hover {
    background: linear-gradient(135deg, #c9a227 0%, #e8c96a 100%);
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btms-auth-card .forgot-link {
    color: var(--btms-gold, #c9a227);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.btms-auth-card .forgot-link:hover {
    color: #a8841a;
    text-decoration: underline;
}

.btms-auth-card .form-check-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.btms-auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem;
    color: #9ca3af;
}

.btms-auth-alert {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.btms-auth-field-error {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

.btms-demo-accounts {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.btms-demo-accounts summary {
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    user-select: none;
}

.btms-demo-accounts summary:hover {
    color: var(--btms-gold, #c9a227);
}

.btms-demo-accounts table {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.btms-demo-row {
    cursor: pointer;
    transition: background 0.15s;
}

.btms-demo-row:hover {
    background: rgba(201, 162, 39, 0.1);
}

.btms-demo-row td {
    padding: 0.35rem 0.25rem !important;
    vertical-align: middle;
}

.btms-demo-accounts code {
    font-size: 0.78rem;
    color: #92400e;
    background: rgba(201, 162, 39, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
}

/* Lock screen */
.btms-auth-layout--lock {
    max-width: 920px;
    min-height: 520px;
}

.btms-lock-user {
    margin-bottom: 1.75rem;
}

.btms-lock-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #a8841a 0%, #c9a227 50%, #e8c96a 100%);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

.btms-lock-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #f3f4f6;
}

.btms-lock-user h5 {
    font-weight: 700;
    color: #1a1a1a;
}

.btms-lock-user .subtitle {
    margin-bottom: 0.35rem;
}

.btms-auth-card-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.btms-auth-card--verify {
    flex: none;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.12);
}

@media (max-width: 991.98px) {
    .btms-auth-layout {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .btms-auth-aside {
        display: none !important;
    }

    .btms-auth-card {
        flex: 1;
        border-radius: 1rem;
    }
}

@media (max-width: 575.98px) {
    .btms-auth-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .btms-auth-card {
        padding: 2rem 1.5rem;
    }
}
