header, footer, .cas-header, .cas-footer, .mdc-top-app-bar, #app-bar {
    display: none !important;
}

:root {
    --cas-theme-bg-image: none !important;
    --mdc-theme-background: #273443 !important;
}

body, html, #cas {
    background-color: #273443 !important;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.bgimage {
    background-image: none !important;
}

.custom-login-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
}

.dark-login-card {
    background-color: #1d2733;
    border-radius: 12px;
    padding: 40px 50px;
    width: 100%;
    max-width: 540px;
    text-align: center;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.08), 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media screen and (max-width: 768px) {
  .dark-login-card {
    width: 80%;
    padding: 20px;
  }
}

.brand-logo {
    background: white;
    border-radius: 10px;
    max-width: 50%;
    height: auto;
}

.instruction-text {
    color: #a3b1c6;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.sso-provider, .guest-option {
    margin-bottom: 15px;
}

.custom-btn-primary {
    background-color: #0078d4;
    color: #ffffff !important;
}

.custom-btn-primary:hover {
    background-color: #006abc;
}

.custom-btn-secondary {
    background-color: #2a3746;
    color: #ffffff !important;
    border: 1px solid #3c4c5d !important;
}

.custom-btn-secondary:hover {
    background-color: #354455;
}

.footer-note {
    margin-top: 25px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 15px;
}

.custom-input {
    width: 100%;
    padding: 14px 18px;
    background-color: #131a22 !important;
    border: 2px solid #2a3746 !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.custom-input:focus {
    outline: none;
    border-color: #0078d4 !important;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}

.custom-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #131a22 inset !important;
    -webkit-text-fill-color: white !important;
}

.remember-me-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 25px;
    width: 100%; 
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0; 
}

.switch input[type="checkbox"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2; 
    cursor: pointer;
    margin: 0;
}

.slider {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-color: #3c4c5d;
    transition: 0.3s;
    border-radius: 24px;
    z-index: 1;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input[type="checkbox"]:checked ~ .slider {
    background-color: #10b981;
}

input[type="checkbox"]:checked ~ .slider:before {
    transform: translateX(20px);
}

.remember-label {
    color: #a3b1c6;
    font-size: 14px;
    line-height: 24px; 
    user-select: none;
    cursor: pointer;
    margin: 0; 
}

.error-banner {
    background-color: rgba(220, 53, 69, 0.1); 
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.error-banner i {
    font-size: 18px;
    flex-shrink: 0;
}
