.login-logo,
.register-logo {
    font-weight: 300;
}

.card {
    border-radius: 12px;
}

.small-box {
    border-radius: 12px;
}

.table td,
.table th {
    vertical-align: middle;
}

/* Sidebar Geometric Pattern */
.main-sidebar {
    background-color: #1e293b !important;
    /* Dark slate */
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 2px,
            transparent 12px) !important;
}

/* Make sure brand link and user panel have matching subtle borders */
.main-sidebar .brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.main-sidebar .user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.auth-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* Dark background to match the reference animation */
    color: #102033;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 450px;
    width: 100%;
    max-width: 1100px;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-height: 600px;
}

.auth-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.auth-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    /* Slightly dim the image to fit dark theme */
}

.auth-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121212;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    padding: 40px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 360px;
}

.auth-card-header {
    margin-bottom: 40px;
    text-align: center;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: #10b981;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.auth-card-header .login-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
}

.auth-card-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 16px;
}

.auth-card label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.auth-card .form-control,
.auth-card .input-group-text {
    height: 52px;
    border-color: #334155;
    border-radius: 12px;
    color: #ffffff;
}

.auth-card .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #0f172a;
}

.auth-card .form-control::placeholder {
    color: #64748b;
}

.auth-card .input-group-text {
    background: #0f172a;
    color: #10b981;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.auth-card .form-control:focus {
    border-color: #10b981;
    background: #000;
    box-shadow: none;
    color: #fff;
}

.auth-card .form-control:focus+.input-group-append .input-group-text {
    border-color: #10b981;
    background: #000;
}

.auth-submit {
    height: 52px;
    margin-top: 16px;
    border: 0;
    border-radius: 12px;
    background: #10b981;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.15);
}

.auth-submit:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.3);
}

.auth-register-link,
.auth-demo {
    text-align: center;
}

.auth-register-link {
    margin: 30px 0 16px;
}

.auth-register-link a {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
}

.auth-register-link a:hover {
    color: #059669;
}

.auth-demo {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-hero {
        display: none;
        /* Hide image on small screens */
    }
}