


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
}

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 118px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 32px 16px;
}

.login-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* semi-transparent overlay */
    z-index: 2;
}

.login-card {
    position: relative;
    z-index: 3;
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    padding: 40px 30px;
    text-align: center;
}

        .login-card img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            margin-bottom: 20px;
        }

        .login-card h1 {
            font-size: 22px;
            color: #c92127;
            margin-bottom: 10px;
        }

        .login-card h2 {
            font-size: 18px;
            margin-bottom: 12px;
        }

        .login-card p {
            font-size: 14px;
            color: #555;
            margin-bottom: 24px;
        }

        .login-card form {
            display: grid;
            gap: 18px;
        }

        .request-form,
        .form-group {
            text-align: left;
        }

        .form-label {
            font-size: 14px;
            margin-bottom: 5px;
            display: block;
            font-weight: 600;
        }

        .form-input {
            width: 100%;
            padding: 12px 40px 12px 12px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 14px;
            background: #ffffff;
            color: #111827;
            caret-color: #c92127;
        }

        .form-input:-webkit-autofill,
        .form-input:-webkit-autofill:hover,
        .form-input:-webkit-autofill:focus {
            -webkit-text-fill-color: #111827;
            box-shadow: 0 0 0 1000px #ffffff inset;
        }

        .form-input:focus {
            border-color: #c92127;
            outline: none;
        }

        .input-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

        .btn-primary {
            width: 100%;
            padding: 12px;
            background-color: #c92127;
            color: #fff;
            font-size: 16px;
            font-weight: bold;
            border-radius: 4px;
            border: none;
            cursor: pointer;
        }

        .btn-primary:hover {
            background-color: #a81b20;
        }

        .back-link {
            display: inline-block;
            margin-top: 16px;
            color: #555;
            font-size: 14px;
        }

        .back-link:hover {
            color: #c92127;
        }

        .input-wrapper {
            position: relative;
        }

        .flash-messages-container {
            display: grid;
            gap: 8px;
            margin-bottom: 18px;
            text-align: left;
        }

        .error-msg,
        .success-msg {
            border-radius: 6px;
            font-size: 13px;
            line-height: 1.4;
            padding: 10px 12px;
        }

        .error-msg {
            background: #fee2e2;
            color: #991b1b;
        }

        .success-msg {
            background: #dcfce7;
            color: #166534;
        }

@media (max-width: 520px) {
    .login-card {
        padding: 30px 22px;
    }
}
