﻿:root {
    --brand: #003366;
    --brandHover: #004080;
    --ring: #5aa0ff;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    width: 100%;
    max-width: 420px;
}

.login-title {
    margin: 0 0 18px;
    text-align: center;
    font-weight: 800;
    letter-spacing: .3px;
    color: #0f172a;
}

.validation-summary {
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-label {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.input-with-icon {
    position: relative;
}

    .input-with-icon i.fa-envelope,
    .input-with-icon i.fa-lock {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--brand);
        font-size: 1rem;
        pointer-events: none;
    }

/* więcej miejsca na ikonę „oko” po prawej */
.form-control {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    padding: 10px 52px 10px 40px; /* L: ikona, R: przycisk oka */
    font-size: 16px;
    line-height: 1.25;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

    .form-control:focus {
        outline: 0;
        border-color: var(--ring);
        box-shadow: 0 0 0 3px rgba(90,160,255,.25);
    }

    .form-control.input-error {
        border-color: #dc3545;
    }

/* przycisk „oko” – stabilny, nie wystaje poza pole */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #0b3a5a;
    border-radius: 8px;
}

    .toggle-password:focus {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(90,160,255,.25);
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 4px;
}

    .form-check input {
        width: 18px;
        height: 18px;
    }

.login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 16px;
}

.forgot-link {
    font-size: .95rem;
    text-decoration: none;
    color: #0d6efd;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn-primary {
    display: inline-block;
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .02s;
}

    .btn-primary:hover {
        background: var(--brandHover);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary[disabled] {
        opacity: .6;
        cursor: not-allowed;
    }
