:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-lighter: #EFF6FF;
    --dark: #1F2937;
    --text: #374151;
    --border: #E5E7EB;
    --danger: #DC2626;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BACKGROUND IMAGE (SHARED) ===== */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/grahackgpt.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    filter: brightness(0.5);
}

/* ===== DATABASE SELECTION PAGE ===== */
.database-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.database-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.database-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-height: 100vh;
    padding: 20px 0;
}

/* Database Card */
.database-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.card-content {
    padding: 50px 40px;
}

.card-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text);
    text-align: center;
    margin-bottom: 35px;
    opacity: 0.8;
}

/* Database Grid */
.database-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.database-option {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 35px 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.database-option:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #EFF6FF 100%);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.database-option:active {
    transform: translateY(-4px);
}

.option-icon {
    font-size: 50px;
    margin-bottom: 8px;
}

.database-option h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin: 0;
}

.database-option p {
    font-size: 13px;
    color: var(--text);
    text-align: center;
    opacity: 0.75;
    margin: 0;
}

.option-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.database-option:hover .option-arrow {
    opacity: 1;
}

/* Database Footer */
.database-footer {
    text-align: center;
    color: white;
    font-size: 12px;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.database-footer p {
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Main Container */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 380px;
    max-height: 100vh;
    padding: 20px 0;
}

/* ===== BRANDING SECTION ===== */
.branding-section {
    text-align: center;
    color: white;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 101;
    width: 100%;
    flex-shrink: 0;
}

.logo-container {
    margin-bottom: 15px;
}

.logo-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 45px;
    display: block;
}

.app-title {
    font-size: 30px;
    font-weight: 700;
    margin: 8px 0 6px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.app-description {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    margin: 0;
}

.selected-db-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.selected-db-label strong {
    font-weight: 700;
}

/* ===== LOGIN CARD ===== */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.form-section {
    padding: 35px 35px 30px 35px;
    position: relative;
    z-index: 3;
}

/* Form Title */
.form-title-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin: 0 0 5px 0;
    letter-spacing: 0px;
}

.form-subtitle {
    font-size: 13px;
    color: var(--text);
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.75;
}

.form-subtitle strong {
    color: var(--primary-light);
    font-weight: 700;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    letter-spacing: 1px;
    margin: 0 0 28px 0;
}

/* ===== ALERT ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    animation: slideDown 0.4s ease-out;
}

.alert-error {
    background: #FEE2E2;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== FORM STYLES ===== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 3;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== INPUT WRAPPER ===== */
.input-wrapper,
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.input-wrapper input,
.select-wrapper select {
    width: 100%;
    padding: 11px 16px 11px 40px;  /* ← PERBESAR JADI 40px */
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark);
    font-family: inherit;
    position: relative;
    z-index: 2;
}

.input-wrapper input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.input-wrapper input:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-lighter);
    position: relative;
    z-index: 4;
}

/* ===== ICON STYLES (PERBAIKAN) ===== */
.input-icon,
.select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;              /* ← PERBESAR JADI 18px */
    pointer-events: none;
    z-index: 10;                  /* ← TINGKATKAN */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    width: 24px;
    height: 24px;
}

/* ===== TOGGLE PASSWORD (PERBAIKAN) ===== */
.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    transition: opacity 0.3s;
    color: var(--text);
    z-index: 10;                  /* ← TINGKATKAN */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn:hover {
    opacity: 0.6;
}

/* ===== CHECKBOX ===== */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 10px 0 5px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    user-select: none;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-light);
}

/* ===== LOGIN BUTTON ===== */
.btn-login {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    letter-spacing: 0.5px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== LOGIN ACTIONS (Tombol Kembali) ===== */
.login-actions {
    text-align: center;
    position: relative;
    z-index: 101;
    width: 100%;
    flex-shrink: 0;
}

.btn-back {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: auto;
    min-width: 200px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-back:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    color: white;
    font-size: 11px;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.login-footer p {
    margin: 0;
    text-shadow: 0 1px 4px rgba(243, 236, 236, 0.3);
}

/* ===== DASHBOARD STYLES ===== */

.dashboard-container {
    min-height: 100vh;
    background: #F9FAFB;
}

.dashboard-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
    font-size: 24px;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.user-level {
    font-size: 11px;
    color: var(--primary-light);
    background: var(--primary-lighter);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-logout {
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 600;
}

.btn-logout:hover {
    background: #B91C1C;
    transform: translateY(-2px);
}

.dashboard-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    margin-top: 0;
}

.welcome-card p {
    opacity: 0.9;
    font-size: 14px;
    margin: 0;
}

.info-section,
.actions-section {
    margin-bottom: 30px;
}

.info-section h3,
.actions-section h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card p {
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
    margin: 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.action-card .icon {
    font-size: 40px;
}

.action-card .label {
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    font-size: 14px;
}

/* ============================================ */
/* ===== RESPONSIVE DESIGN ===== */
/* ============================================ */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .database-card {
        max-width: 95%;
    }
    
    .login-wrapper {
        max-width: 450px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .login-container,
    .database-container {
        padding: 15px;
    }

    .login-wrapper {
        gap: 15px;
        max-width: 100%;
        padding: 10px 0;
    }

    .branding-section {
        margin-bottom: 0;
    }

    .app-title {
        font-size: 26px;
    }

    .app-description {
        font-size: 12px;
    }

    .logo-box {
        width: 70px;
        height: 70px;
    }

    .logo-icon {
        font-size: 40px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 14px;
    }

    .form-section {
        padding: 30px 25px 25px 25px;
    }

    .form-title-main {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .login-form {
        gap: 12px;
    }

    .input-wrapper input,
    .select-wrapper select {
        padding: 10px 14px 10px 36px;
        font-size: 13px;
    }

    .btn-login {
        padding: 11px 20px;
        font-size: 14px;
    }

    .btn-back {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 180px;
        width: 100%;
        max-width: 300px;
    }

    .demo-info {
        margin-top: 16px;
        padding-top: 14px;
    }

    .database-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .database-option {
        padding: 25px 20px;
    }

    .card-content {
        padding: 30px 25px;
    }

    .card-title {
        font-size: 26px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .info-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .database-footer,
    .login-footer {
        margin-top: 10px;
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .login-container,
    .database-container {
        padding: 10px;
    }

    .login-wrapper {
        gap: 12px;
        padding: 5px 0;
    }

    .branding-section {
        padding: 0 5px;
    }

    .logo-box {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .logo-icon {
        font-size: 34px;
    }

    .app-title {
        font-size: 22px;
        margin: 5px 0 3px 0;
    }

    .app-description {
        font-size: 11px;
    }

    .selected-db-label {
        font-size: 11px;
        margin-top: 6px;
    }

    .login-card {
        border-radius: 12px;
    }

    .form-section {
        padding: 20px 18px 18px 18px;
    }

    .form-title-main {
        font-size: 20px;
    }

    .form-subtitle {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .login-form {
        gap: 10px;
    }

    .form-group label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .input-wrapper input,
    .select-wrapper select {
        padding: 9px 12px 9px 34px;
        font-size: 12px;
        border-radius: 6px;
    }

    .input-icon,
    .select-icon {
        left: 10px;
        font-size: 14px;
    }

    .toggle-password-btn {
        right: 8px;
        font-size: 16px;
        padding: 3px 5px;
    }

    .btn-login {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 6px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .checkbox-label input {
        width: 16px;
        height: 16px;
    }

    .demo-info {
        margin-top: 14px;
        padding-top: 12px;
        font-size: 11px;
    }

    .demo-info p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .demo-info li {
        font-size: 11px;
        padding-left: 18px;
        margin: 4px 0;
    }

    .demo-info code {
        font-size: 10px;
        padding: 1px 5px;
    }

    .btn-back {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 160px;
        border-radius: 6px;
        max-width: 100%;
    }

    .login-actions {
        margin-top: 0;
    }

    .card-content {
        padding: 25px 18px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .database-grid {
        gap: 12px;
    }

    .database-option {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .option-icon {
        font-size: 36px;
        margin-bottom: 4px;
    }

    .database-option h3 {
        font-size: 16px;
    }

    .database-option p {
        font-size: 12px;
    }

    .database-footer {
        font-size: 10px;
    }

    .login-footer {
        font-size: 10px;
        margin-top: 8px;
    }

    .dashboard-main {
        margin: 10px auto;
        padding: 0 12px;
    }

    .welcome-card {
        padding: 16px;
    }

    .welcome-card h2 {
        font-size: 18px;
    }

    .welcome-card p {
        font-size: 12px;
    }

    .dashboard-header h1 {
        font-size: 18px;
    }

    .user-name {
        font-size: 12px;
    }

    .user-level {
        font-size: 10px;
        padding: 3px 10px;
    }

    .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }

    .action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .action-card {
        padding: 16px 12px;
    }

    .action-card .icon {
        font-size: 28px;
    }

    .action-card .label {
        font-size: 11px;
    }

    .info-grid {
        gap: 12px;
    }

    .info-card {
        padding: 16px;
    }

    .info-card h4 {
        font-size: 10px;
    }

    .info-card p {
        font-size: 14px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .login-container,
    .database-container {
        padding: 8px;
    }

    .login-wrapper {
        gap: 10px;
        padding: 3px 0;
    }

    .form-section {
        padding: 16px 14px 14px 14px;
    }

    .form-title-main {
        font-size: 18px;
    }

    .app-title {
        font-size: 20px;
    }

    .logo-box {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .input-wrapper input,
    .select-wrapper select {
        padding: 8px 10px 8px 30px;
        font-size: 11px;
    }

    .btn-login {
        padding: 8px 14px;
        font-size: 12px;
    }

    .btn-back {
        padding: 7px 14px;
        font-size: 11px;
        min-width: 140px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .card-content {
        padding: 20px 14px;
    }

    .card-title {
        font-size: 18px;
    }

    .database-option {
        padding: 16px 12px;
    }

    .option-icon {
        font-size: 30px;
    }

    .database-option h3 {
        font-size: 14px;
    }

    .database-option p {
        font-size: 11px;
    }
}

/* ===== UTILITY - FIX Z-INDEX ISSUES ===== */

.database-card,
.login-card,
.branding-section,
.login-actions,
.login-footer,
.database-footer {
    position: relative;
    z-index: 101;
}

.login-bg {
    z-index: 0;
}

.database-container,
.login-container {
    z-index: 10;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ===== SCROLLBAR STYLING (Optional) ===== */
.login-container::-webkit-scrollbar,
.database-container::-webkit-scrollbar {
    width: 4px;
}

.login-container::-webkit-scrollbar-track,
.database-container::-webkit-scrollbar-track {
    background: transparent;
}

.login-container::-webkit-scrollbar-thumb,
.database-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

