body {
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    background-image: url(https://www.rappler.com/tachyon/2023/05/CAEPUP-may-29-2023-1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.instructions {
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0 auto;
}

.container {
    background: rgba(255, 255, 255, 0.85);
    padding: 36px 32px 28px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    text-align: center;
    min-width: 320px;
    max-width: 370px;
    margin-top: 20px;
    position: relative;
    transition: box-shadow 0.2s;
}

.container.glass {
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.logo {
    width: 70px;
    margin-bottom: 10px;
    margin-top: -10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2 {
    margin: 10px 0 2px 0;
    font-weight: 700;
    color: #2d3a4b;
    letter-spacing: 0.5px;
}

h3 {
    margin: 0 0 18px 0;
    font-weight: 400;
    color: #4b5c6b;
    font-size: 1.05em;
    letter-spacing: 0.2px;
}

input {
    margin: 12px auto;
    padding: 10px 12px;
    border: 1.5px solid #b0c4de;
    border-radius: 6px;
    font-size: 1em;
    background: #f7fafc;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

input:focus {
    border: 1.5px solid #007bff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px #c2e9fb;
}

button {
    padding: 11px 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.08em;
    font-weight: 500;
    width: 48%;
    margin: 8px 1%;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

button:hover,
.login-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.08);
}

.role-btn {
    background-color: #f1f5fa;
    color: #007bff;
    border: 1.5px solid #007bff;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
}

.role-btn:hover,
.role-btn:focus {
    background-color: #007bff;
    color: #fff;
}

.login-btn {
    width: 90%;
    margin: 18px auto 0 auto;
    background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
    font-size: 1.08em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
}

#role-select {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#message {
    color: #d32f2f;
    font-size: 0.98em;
    margin-top: 10px;
    min-height: 22px;
}

#loginForm {
    position: relative;
}


#loginForm input[type="text"]#username,
#loginForm .password-wrapper {
    width: 90%;
    max-width: 320px;
    margin: 12px auto;
    box-sizing: border-box;
}


.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 12px auto;
    box-sizing: border-box;
}


.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding-right: 38px;
}

#togglePassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #888;
}

#togglePassword:focus {
    outline: none;
}

@media (max-width: 600px) {

    .main-wrapper,
    .container {
        width: 98vw !important;
        min-width: unset !important;
        max-width: 98vw !important;
        padding: 10px !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .logo {
        width: 54px;
    }

    h2,
    h3 {
        font-size: 1em !important;
    }

    input,
    button {
        font-size: 0.98em !important;
    }
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    background-image: url(https://img.freepik.com/free-photo/harvard-university-cambridge-usa_1268-14363.jpg?semt=ais_hybrid&w=740&q=80);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.instructions {
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0 auto;
}

.container {
    background: rgba(255, 255, 255, 0.85);
    padding: 36px 32px 28px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    text-align: center;
    min-width: 320px;
    max-width: 370px;
    margin-top: 20px;
    position: relative;
    transition: box-shadow 0.2s;
}

.container.glass {
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.logo {
    width: 70px;
    margin-bottom: 10px;
    margin-top: -10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2 {
    margin: 10px 0 2px 0;
    font-weight: 700;
    color: #2d3a4b;
    letter-spacing: 0.5px;
}

h3 {
    margin: 0 0 18px 0;
    font-weight: 400;
    color: #4b5c6b;
    font-size: 1.05em;
    letter-spacing: 0.2px;
}

input {
    margin: 12px auto;
    padding: 10px 12px;
    border: 1.5px solid #b0c4de;
    border-radius: 6px;
    font-size: 1em;
    background: #f7fafc;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

input:focus {
    border: 1.5px solid #007bff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px #c2e9fb;
}

button {
    padding: 11px 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.08em;
    font-weight: 500;
    width: 48%;
    margin: 8px 1%;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

button:hover,
.login-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.08);
}

.role-btn {
    background-color: #f1f5fa;
    color: #007bff;
    border: 1.5px solid #007bff;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
}

.role-btn:hover,
.role-btn:focus {
    background-color: #007bff;
    color: #fff;
}

.login-btn {
    width: 90%;
    margin: 18px auto 0 auto;
    background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
    font-size: 1.08em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
}

#role-select {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#message {
    color: #d32f2f;
    font-size: 0.98em;
    margin-top: 10px;
    min-height: 22px;
}

#loginForm {
    position: relative;
}


#loginForm input[type="text"]#username,
#loginForm .password-wrapper {
    width: 90%;
    max-width: 320px;
    margin: 12px auto;
    box-sizing: border-box;
}


.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 12px auto;
    box-sizing: border-box;
}


.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding-right: 38px;
}

#togglePassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #888;
}

#togglePassword:focus {
    outline: none;
}

@media (max-width: 600px) {

    .main-wrapper,
    .container {
        width: 98vw !important;
        min-width: unset !important;
        max-width: 98vw !important;
        padding: 10px !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .logo {
        width: 54px;
    }

    h2,
    h3 {
        font-size: 1em !important;
    }

    input,
    button {
        font-size: 0.98em !important;
    }
}