/* ADITECH - Login */
html,
body.login-page {
    min-height: 100%;
}

body.login-page {
    margin: 0;
    padding: 0;
    background: #f3f6f9;
    color: #1f2937;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.login-page *,
body.login-page *::before,
body.login-page *::after {
    box-sizing: border-box;
}

.login-shell {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 32px 20px;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-card {
    position: relative;
    width: 100%;
    padding: 40px 38px 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.10),
        0 2px 6px rgba(15, 23, 42, 0.05);
    animation: loginRise 0.45s ease both;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2b6cb0;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin-bottom: 24px;
}

.login-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.login-heading {
    margin-bottom: 26px;
    text-align: center;
}

.login-heading h1 {
    margin: 0 0 7px;
    color: #1f2937;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.login-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px 14px;
    color: #9a3412;
    font-size: 0.83rem;
    line-height: 1.5;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}

.login-alert i {
    margin-top: 2px;
    color: #ea580c;
    font-size: 0.95rem;
    line-height: 1;
}

.login-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.login-alert-error i {
    color: #dc2626;
}

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

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

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

.login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-input-wrap:focus-within > i {
    color: #2b6cb0;
}

.login-input-wrap input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 50px 0 46px;
    color: #1f2937;
    font-size: 1rem;
    line-height: 52px;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    outline: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.login-input-wrap input:focus {
    background: #ffffff;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.14);
}

.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f2937;
    caret-color: #1f2937;
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
    transition: background-color 5000s ease-in-out 0s;
}

.login-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #94a3b8;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, background 0.2s ease;
}

.login-toggle:hover,
.login-toggle:focus {
    color: #2b6cb0;
    background: #eaf2fa;
    outline: 0;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin-top: 8px;
    padding: 0 20px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #2b6cb0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(43, 108, 176, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.login-submit:hover {
    background: #245a94;
    box-shadow: 0 10px 22px rgba(43, 108, 176, 0.26);
    transform: translateY(-1px);
}

.login-submit:hover i {
    transform: translateX(3px);
}

.login-submit:active {
    background: #1f4f80;
    box-shadow: 0 6px 14px rgba(43, 108, 176, 0.20);
    transform: translateY(0);
}

.login-submit:focus-visible {
    outline: 3px solid rgba(43, 108, 176, 0.35);
    outline-offset: 3px;
}

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.55;
}

.login-copy {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-align: center;
    text-transform: uppercase;
}

@keyframes loginRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-shell {
        padding: 20px 14px;
    }

    .login-card {
        padding: 30px 22px 24px;
        border-radius: 18px;
    }

    .login-brand {
        min-height: 60px;
        margin-bottom: 20px;
    }

    .login-brand img {
        max-height: 60px;
    }

    .login-heading {
        margin-bottom: 22px;
    }

    .login-heading h1 {
        font-size: 1.45rem;
    }

    .login-input-wrap input,
    .login-submit {
        height: 50px;
    }

    .login-input-wrap input {
        line-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .login-submit,
    .login-submit i,
    .login-toggle,
    .login-input-wrap input,
    .login-input-wrap > i {
        animation: none;
        transition: none;
    }

    .login-submit:hover,
    .login-submit:hover i {
        transform: none;
    }
}