html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
nav {
    position: relative;
    z-index: 10;
}
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.btn-primary{
    margin-top:20px;
}

.login-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: url('/images/bg.jpg') center / cover no-repeat;
    filter: blur(8px) brightness(0.55);
    transform: scale(1.05); /* prevents blur edge bleed */
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 380px;
    margin: 1.5rem; /* keeps padding on small screens */
    box-sizing: border-box;
}

    .login-card h2 {
        font-size: 28px;
        color: #fff;
        margin: 0 0 0.25rem;
    }

    .login-card .subtitle {
        font-size: 13px;
        color: rgba(255,255,255,0.6);
        margin: 0 0 1.5rem;
    }

.error-box {
    background: rgba(226, 75, 74, 0.2);
    border: 1px solid rgba(226, 75, 74, 0.5);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ffc9c9;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(226, 75, 74, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.field {
    margin-bottom: 1rem;
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: rgba(255,255,255,0.75);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
    }

    .field input {
        width: 100%;
        box-sizing: border-box;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 10px;
        padding: 11px 14px;
        font-size: 14px;
        color: #fff;
    }

        .field input:focus {
            outline: none;
            border-color: rgba(255,255,255,0.5);
            background: rgba(255,255,255,0.15);
        }

.btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.95);
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
}

.footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

    .footer a {
        color: rgba(255,255,255,0.85);
    }

.rules {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .rules li {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.45);
        padding-left: 18px;
        position: relative;
        transition: color 0.2s;
    }

        .rules li::before {
            content: '○';
            position: absolute;
            left: 0;
            transition: color 0.2s;
        }

        .rules li.passed {
            color: rgba(150, 255, 180, 0.85);
        }

            .rules li.passed::before {
                content: '●';
                color: rgba(150, 255, 180, 0.85);
            }

        .rules li.failed {
            color: rgba(255, 160, 160, 0.85);
        }

            .rules li.failed::before {
                content: '●';
                color: rgba(255, 160, 160, 0.85);
            }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
