/* ============================================================
   Metalinvest-Remko — Login (guest) redesign
   Hand-written, no Tailwind build required.
   ============================================================ */

:root {
    --rk-blue: #002180;
    --rk-blue-hover: #001a63;
    --rk-blue-2: #0457fe;
}

.login-page {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: #eef1f6;
    background-image: radial-gradient(1100px 420px at 50% -8%, #e4ebf7 0%, rgba(228, 235, 247, 0) 62%);
}

.login-shell {
    width: 100%;
    max-width: 392px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.login-logo svg {
    width: 150px;
    height: auto;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e7ebf2;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 32, 74, .04), 0 18px 40px -22px rgba(16, 32, 74, .28);
    padding: 30px 28px 26px;
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
}

.login-title h1 {
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -.01em;
    margin: 0;
}

.login-status {
    color: #059669;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 14px;
}

.login-reader {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.login-reader .tile {
    width: 118px;
    height: 118px;
    border-radius: 16px;
    background: #f3f6fb;
    border: 1px solid #e7ebf2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-reader .tile img {
    max-width: 92px;
    max-height: 92px;
    height: auto;
}

.login-field {
    margin-bottom: 16px;
}

.login-field.pin {
    margin-bottom: 22px;
}

.login-field > label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
}

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

.login-input-wrap > .ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa4b6;
    display: flex;
    pointer-events: none;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 14px 0 40px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #fbfcfe;
    border: 1px solid #d7dded;
    border-radius: 11px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
    border-color: var(--rk-blue-2);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(4, 87, 254, .12);
}

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 11px;
    background: var(--rk-blue);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(0, 33, 128, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, transform .05s, box-shadow .15s;
}

.login-btn:hover {
    background: var(--rk-blue-hover);
}

.login-btn:active {
    transform: translateY(1px);
}

/* Validation messages (keeps Laravel error output, restyled) */
.login-card .login-error,
.login-card ul.login-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    list-style: none;
    padding: 0;
}

.login-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
}

.login-lang .lbl {
    font-size: 12px;
    color: #9aa4b6;
    margin-right: 2px;
}

/* gtranslate flag row refinement (do not change its behavior, only look) */
.login-lang .gtranslate_wrapper {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}

.login-lang .gtranslate_wrapper {
    gap: 11px;
}

.login-lang .gtranslate_wrapper a.glink {
    line-height: 0;
    display: inline-flex;
    width: 36px;
    height: 24px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #eef1f6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .82;
    box-shadow: 0 1px 3px rgba(16, 32, 74, .22);
    transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}

.login-lang .gtranslate_wrapper a.glink:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 3px 9px rgba(16, 32, 74, .30);
}

.login-lang .gtranslate_wrapper a.glink.rk-flag-active {
    opacity: 1;
    transform: scale(1.14);
    box-shadow: 0 0 0 2px #0457fe, 0 3px 9px rgba(16, 32, 74, .32);
}

/* Replace the low-res square gtranslate flags with crisp rectangular ones */
.login-lang .gtranslate_wrapper a.glink img {
    display: none;
}

.login-lang .gtranslate_wrapper a[data-gt-lang="bg"] {
    background-image: url("https://flagcdn.com/w80/bg.png");
}

.login-lang .gtranslate_wrapper a[data-gt-lang="ne"] {
    background-image: url("https://flagcdn.com/w80/np.png");
}

.login-lang .gtranslate_wrapper a[data-gt-lang="uz"] {
    background-image: url("https://flagcdn.com/w80/uz.png");
}

.login-lang .gtranslate_wrapper a[data-gt-lang="si"] {
    background-image: url("https://flagcdn.com/w80/lk.png");
}

.login-copy {
    text-align: center;
    font-size: 12px;
    color: #9aa4b6;
    margin-top: 18px;
}

@media (max-width: 420px) {
    .login-page {
        padding: 22px 14px;
    }
    .login-card {
        padding: 26px 20px 22px;
        border-radius: 16px;
    }
    .login-logo svg {
        width: 132px;
    }
}
