/* Voter login / forgot-password screens (animated ring + floating labels).
   Recreated to match the markup in index.php and forgot-pass.php. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: maroon;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 256px;
    height: 256px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 120px auto;
}

.login-box {
    position: absolute;
    width: 400px;
    max-width: 90vw;
    z-index: 2;
}

.login-logo {
    text-align: center;
    margin-bottom: 10px;
}

.login-box form {
    width: 100%;
    padding: 0 50px;
}

.input-box {
    position: relative;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid #f0c0c0;
    outline: none;
    border-radius: 40px;
    font-size: 1em;
    color: #fff;
    padding: 0 20px;
    transition: .5s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: cyan;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    transition: .5s ease;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: 1px;
    font-size: .8em;
    background: maroon;
    padding: 0 6px;
    color: cyan;
}

.btn {
    width: 100%;
    height: 45px;
    background: cyan;
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #3b0000;
    font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
    background: #8ff;
    box-shadow: 0 0 0 3px #fff;
}

.forgot-pass {
    text-align: center;
}

.forgot-pass a {
    font-size: .9em;
    color: #fff;
    text-decoration: none;
}

.forgot-pass a:hover {
    text-decoration: underline;
}

.callout {
    border-radius: 12px;
    padding: 10px 14px;
    margin: 10px 50px;
    color: #fff;
}

.callout-danger {
    background: #d9534f;
}

.text-center {
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .container span {
        animation: none !important;
    }
}
