.login-page {
    font-family: 'Noto Sans', sans-serif;
    background-color: #f7f8fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-header-logo {
    height: 60px;
}

.login-header-text {
    text-align: left;
}

.login-header-title {
    font-family: 'Sniglet', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    color: #02857d;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.1rem;
}

.login-header-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    margin: 0;
    text-align: right;
}

.login-container {
    padding: 2.5rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: #009688;
    border-color: #009688;
}

.btn-primary:hover {
    background-color: #00796b;
    border-color: #00796b;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.shake-field {
  animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

.form-error-text {
    color: var(--bs-danger);
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* --- Login Form Input Group Styling --- */

/* Style the entire group to have a single border */
.login-container .input-group {
    border: 1px solid #dee2e6; /* The border is now on the group */
    border-radius: .5rem; /* Match Bootstrap's form-control-lg radius */
    transition: border-color .15s ease-in-out;
    overflow: hidden;
}

/* When any element inside the group is focused, change the group's border */
.login-container .input-group:focus-within {
    border-color: #02857d; /* Teal border when any child is focused */
    box-shadow: none;
}

/* Style the icon's container */
.login-container .input-group-text {
    background-color: transparent;
    border: none; /* Remove individual border from the icon part */
}

/* Style the icon itself */
.login-container .input-group-text .mdi {
    color: #adb5bd;
    font-size: 1.25rem;
    transition: color .15s ease-in-out;
}

/* When the group is focused, make the icon teal */
.login-container .input-group:focus-within .input-group-text .mdi {
    color: #02857d; /* Teal icon on focus */
}

/* Remove the border and shadow from the input itself, as the group handles it */
.login-container .input-group .form-control {
    border: none;
    box-shadow: none !important; /* Always remove halo */
}
