* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background:
        linear-gradient(rgba(9, 39, 68, 0.78), rgba(12, 91, 126, 0.78)),
        linear-gradient(135deg, #102f4a, #1e7f9f);
    color: #263746;
}

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 38px 42px 30px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 18px;
}

.subtitle {
    margin: 0 0 12px;
    text-align: center;
    color: #607080;
    font-size: 16px;
}

.role-context {
    margin: 0 0 8px;
    text-align: center;
    color: #163f63;
    font-size: 15px;
    font-weight: 600;
}

.role-switch {
    margin: 0 0 24px;
    text-align: center;
    font-size: 14px;
}

.role-switch a {
    color: #1596ae;
    text-decoration: none;
}

.role-switch a:hover {
    text-decoration: underline;
}

form label {
    display: block;
    margin: 0 0 7px;
    font-weight: 600;
    color: #33495a;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    margin-bottom: 16px;
    border: 1px solid #c4ced6;
    border-radius: 7px;
    background: white;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #1596ae;
    box-shadow: 0 0 0 3px rgba(21, 150, 174, 0.15);
}

input[readonly] {
    background: #f3f6f8;
    color: #33495a;
}

.signup-card {
    max-width: 480px;
}

.optional-hint {
    font-weight: 500;
    color: #7a8790;
    font-size: 12px;
}

.password-field {
    position: relative;
    margin-bottom: 16px;
}

.password-field input {
    margin-bottom: 0;
    padding-right: 72px;
}

.show-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 68px;
    height: 48px;
    border: none;
    background: transparent;
    color: #087f98;
    font-weight: 600;
    cursor: pointer;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 18px 0 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
}

.remember-me input {
    margin: 0;
}

.login-options a {
    color: #087f98;
    text-decoration: none;
    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}

.sign-in-button {
    width: 100%;
    height: 49px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(90deg, #087f98, #16a4bd);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sign-in-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(8, 127, 152, 0.28);
}

.login-message {
    min-height: 20px;
    margin: 14px 0 0;
    text-align: center;
    font-size: 14px;
    color: #33495a;
}

.login-message.is-error {
    color: #b42318;
}

.login-message.is-success {
    color: #0f6b4c;
}

.sign-in-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e1e6ea;
    text-align: center;
}

footer p {
    margin: 5px 0;
    color: #7a8790;
    font-size: 12px;
}

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

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
