#bg-body {
    background: url('../../../../images/tsdc/bg/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Override DaisyUI input focus style for login form */
.input.input-bordered:focus {
    outline: none;
    box-shadow: none;
    border-color: #6b7280;
}

/* Fixed width for login card to prevent layout shift */
.card.bg-base-100 {
    width: 24rem;
}

/* Error alert styling - dark red with white text */
.alert.alert-error {
    background-color: #b91c1c;
    color: #ffffff;
    border: none;
}

/* ========================================
   Mode 3: Glassmorphism Login Panel Styles
   ======================================== */

/* Glassmorphism card - transparent with backdrop blur */
.card.login-glass {
    background: transparent !important;
    /* backdrop-filter and border-color set via inline style from config */
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 280px; /* Minimum height for consistent sizing */
}

/* Transparent input with bottom border only (Material Design underline style) */
.login-glass .input-underline,
.login-glass input.input-underline,
.card.login-glass input[type="text"],
.card.login-glass input[type="password"] {
    all: unset; /* Reset all inherited and initial styles */
    display: block;
    width: 100%;
    height: 1.75rem;
    padding: 0.25rem 0;
    font-size: 1rem;
    line-height: 1.25;
    color: inherit;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid !important;
    /* border-bottom-color set via inline style from config */
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-bottom-width 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.login-glass .input-underline:focus,
.login-glass .input-underline:focus-visible,
.card.login-glass input[type="text"]:focus,
.card.login-glass input[type="password"]:focus {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border-bottom-width: 2px !important; /* Thicker border on focus */
}

/* Override browser autofill styling */
.login-glass .input-underline:-webkit-autofill,
.login-glass .input-underline:-webkit-autofill:hover,
.login-glass .input-underline:-webkit-autofill:focus,
.login-glass .input-underline:-webkit-autofill:active,
.card.login-glass input:-webkit-autofill,
.card.login-glass input:-webkit-autofill:hover,
.card.login-glass input:-webkit-autofill:focus,
.card.login-glass input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login-glass .input-underline::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Ghost/Outline button style */
.login-glass .btn-outline-custom {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    margin-top: 1rem; /* Extra spacing from password field */
}

.login-glass .btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.login-glass .btn-outline-custom:disabled {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 0.5;
}

/* Reserve space for validation error to prevent layout shift */
.login-glass .form-control .label:last-child {
    min-height: 1rem;
}
