@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #364A6F;
    --dark-gray: #353844;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.32);
    --border-rgba: rgba(54, 74, 111, 0.36);
    --error-color: #d93025;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('../images/login_bg.jpg'), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #FFFFFF;
    background-size: cover;
    background-position: center;
}

#wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 891px;
    height: auto;
    min-height: 589px;
    background: var(--glass-bg);
    backdrop-filter: blur(12.05px);
    -webkit-backdrop-filter: blur(12.05px);
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    width: 97px;
    height: auto;
}

.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.login-header h1 {
    font-weight: 500;
    font-size: 28px;
    line-height: 42px;
    color: var(--primary-color);
}

.login-header p {
    display: none; /* Hide the subtitle from original design unless needed */
}

form {
    width: 100%;
    max-width: 532px;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.form-input, .form-select {
    width: 100%;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-rgba);
    border-radius: 8px;
    padding: 9px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-submit {
    width: 326px;
    height: 39px;
    background: var(--primary-color);
    border-radius: 8px;
    border: none;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    display: block;
    margin: 40px auto 0;
    transition: opacity 0.2s ease;
}

.form-submit:hover {
    opacity: 0.9;
}

.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: var(--primary-color);
    opacity: 0.7;
}

.error-box {
    background: rgba(217, 48, 37, 0.1);
    border: 1px solid rgba(217, 48, 37, 0.3);
    color: #8b0000;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 532px;
}

/* Responsiveness */
@media (max-width: 920px) {
    .login-container {
        width: 95%;
        padding: 40px 20px;
    }
    
    form {
        max-width: 100%;
    }
    
    .form-submit {
        width: 100%;
    }
}
