:root {
    --rud-ink: #092f35;
    --rud-teal: #075b5b;
    --rud-teal-dark: #043f43;
    --rud-muted: #64777b;
    --rud-line: #d9e4e3;
}

* {
    box-sizing: border-box;
}

body.login-body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    color: var(--rud-ink);
    background: #153f43;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-background,
.login-background-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-background {
    z-index: 0;
    background-color: #153f43;
    background-position: center;
    background-size: cover;
    filter: saturate(0.9);
    transform: scale(1.02);
}

.login-background-overlay {
    z-index: 0;
    background: linear-gradient(135deg, rgba(4, 35, 40, 0.76), rgba(7, 91, 91, 0.42));
}

.login-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.25rem 1rem;
}

.login-panel {
    width: 100%;
    max-width: 400px;
}

.rud-logo {
    display: block;
    width: min(150px, 48vw);
    height: auto;
    margin: 0 auto 0.4rem;
    filter: drop-shadow(0 10px 16px rgba(9, 47, 53, 0.12));
}

.login-branding {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--rud-line);
    text-align: center;
}

.login-branding p {
    margin: 0;
    color: var(--rud-ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.login-access {
    padding: 1.25rem 1.4rem 1.15rem;
    border: 1px solid rgba(9, 47, 53, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 32px rgba(9, 47, 53, 0.1);
}

.login-access h2 {
    margin: 0 0 1.1rem;
    color: var(--rud-ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.login-field {
    margin-bottom: 0.75rem;
}

.login-field-label {
    display: block;
    margin: 0 0 0.3rem;
    color: var(--rud-ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 1;
    color: var(--rud-teal);
    font-size: 0.9rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.form-control {
    display: block;
    width: 100%;
    height: 43px;
    padding: 0.55rem 2.7rem 0.55rem 2.55rem;
    border: 1px solid var(--rud-line);
    border-radius: 9px;
    outline: 0;
    color: var(--rud-ink);
    background: #fbfdfd;
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
    color: #8b9a9d;
}

.form-control:focus {
    border-color: var(--rud-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 91, 91, 0.12);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--rud-teal);
    background: transparent;
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
}

.toggle-password:hover,
.toggle-password:focus-visible {
    color: var(--rud-teal-dark);
    background: rgba(7, 91, 91, 0.1);
    outline: 0;
}

.login-button {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--rud-teal);
    box-shadow: 0 8px 16px rgba(7, 91, 91, 0.18);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover,
.login-button:focus-visible {
    background: var(--rud-teal-dark);
    box-shadow: 0 11px 20px rgba(7, 91, 91, 0.24);
    transform: translateY(-1px);
}

.forgot-password {
    display: block;
    margin-top: 0.8rem;
    color: var(--rud-teal);
    font-size: 0.84rem;
    text-align: center;
    text-decoration: none;
}

.forgot-password:hover,
.login-contact a:hover {
    text-decoration: underline;
}

.login-alert {
    margin: -0.15rem 0 0.85rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #f1caca;
    border-radius: 8px;
    color: #9c2929;
    background: #fff4f4;
    font-size: 0.82rem;
}

.login-contact {
    margin-top: 1rem;
    text-align: center;
}

.login-contact h2 {
    margin: 0 0 0.25rem;
    color: var(--rud-ink);
    font-size: 1rem;
    font-weight: 700;
}

.login-contact-links,
.login-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}

.login-contact a {
    color: var(--rud-muted);
    font-size: 0.84rem;
    text-decoration: none;
}

.login-footer {
    color: var(--rud-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.login-footer p {
    margin: 0;
}

.login-footer-legal {
    margin-top: 0.1rem;
}

.login-footer a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

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

@media (max-width: 575px) {
    .login-page {
        padding: 1rem 1rem 0.8rem;
    }

    .login-access {
        padding: 1.15rem 1rem 1rem;
    }

    .rud-logo {
        width: 135px;
    }

    .login-page {
        justify-content: center;
        gap: 0.8rem;
        min-height: 100svh;
    }

    .login-contact {
        margin-top: 0;
    }

}