:root{
    --color-primary:#1e293b;
    --color-secondary:#4f8ef7;
}

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

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

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

    background: #fff;

    padding: 40px 30px;

    border-radius: 12px;

    border: 1px solid #e0e0e0;

    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.error-box {
    background: #fff0f0;
    border: 1px solid #f5c6c6;

    padding: 10px;
    margin-bottom: 15px;

    border-radius: 8px;

    color: #c0392b;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;

    font-size: 0.9rem;
    color: #444;
}

input {
    width: 100%;

    padding: 10px 12px;

    border-radius: 8px;

    border: 1px solid #ccc;

    font-size: 1rem;
}

button {
    width: 100%;

    padding: 12px;

    background: var(--color-primary);
    color: #fff;

    border: none;
    border-radius: 8px;

    font-size: 1rem;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    background: var(--color-primary);
}

.bottom-text {
    text-align: center;

    margin-top: 18px;

    font-size: 0.9rem;
    color: #666;
}

.bottom-text a {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
}

.bottom-text a:hover{
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 480px) {

    .login-container {
        padding: 30px 20px;
    }

    .login-container h2 {
        font-size: 1.3rem;
    }
}


.password-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.password-label label {
    margin-bottom: 0;
}

.password-help {
    position: relative;

    width: 18px;
    height: 18px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #888;
    border-radius: 50%;

    background: transparent;
    color: #666;

    font-size: 12px;
    font-weight: 700;

    cursor: help;
}

.password-help:hover,
.password-help:focus {
    color: #4f8ef7;
}

.password-tooltip {
    position: absolute;

    left: 26px;
    top: 50%;

    width: 240px;
    padding: 10px 12px;

    transform: translateY(-50%);

    background: #222;
    color: #fff;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 100;
}

/* Hover */
.password-help:hover .password-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Keyboard / focus */
.password-help:focus .password-tooltip {
    opacity: 1;
    visibility: visible;
}