:root {
    --gc-bg-64: #4a4a4a;  /* Darker grey for better contrast */
}

body {
    background-image: url("/img/login-dots.svg");
    background-attachment: fixed;
    background-position: center;
    background-color: var(--gc-bg-64);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.login-wrapper {
    width: 25em;
    max-width: 90%;
    background-color: #7A7A7B;
    padding: 2.5em 3em;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5em;
}

.login-logo-img {
    height: 45px;
    margin-bottom: 1em;
}

.login-header h1 {
    color: white;
    font-size: 24pt;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.login-header h1 span {
    display: block;
    font-weight: 400;
    color: var(--gc-orange);
    font-size: 1.1rem;
    margin-top: 0.25em;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 0.5em;
}

.login-input {
    font-size: 1rem;
    color: white;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--gc-orange);
    padding: 0.5em 0.2em;
    outline: none;
    caret-color: var(--gc-orange);
    transition: border-color 0.2s ease;
}

.login-input:focus {
    border-bottom-color: white;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #7A7A7B inset !important;
    -webkit-text-fill-color: white !important;
}

.login-submit {
    background-color: var(--gc-orange);
    border: none;
    padding: 0.8em;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    width: 100%;
    margin-top: 1em;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.login-submit:hover {
    background-color: #e68e00;
}
.login-submit:active {
    transform: scale(0.98);
}

.login-pw-forgotten {
    text-align: center;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.login-pw-forgotten:hover {
    color: white;
}

.alert-danger {
    background-color: #ffdddd;
    border-left: 5px solid #f44336;
    color: #d32f2f;
    padding: 1em;
    font-size: 0.9rem;
    border-radius: 4px;
}