@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

body:has(.login-screen) {
    background:
        radial-gradient(circle at 8% 6%, rgba(28, 68, 99, 0.3), transparent 31%),
        radial-gradient(circle at 52% 48%, rgba(22, 53, 75, 0.18), transparent 32%),
        #09131e;
    font-family: "IBM Plex Sans", "Segoe UI Variable", "Segoe UI", sans-serif;
}

body:has(.login-screen) .app-shell {
    width: 100%;
    max-width: none;
    padding: 0;
}

body:has(.login-screen) .auth-content {
    min-height: 100vh;
    padding: 0;
}

.login-screen {
    display: grid;
    min-height: 100vh;
    padding: 48px 24px;
    place-items: center;
}

.login-card {
    width: min(100%, 588px);
    padding: 42px 46px 46px;
    transform: translateY(-15px);
    background: rgba(12, 25, 39, 0.56) !important;
    border: 1px solid rgba(137, 165, 190, 0.3) !important;
    border-radius: 28px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(16px);
}

.login-brand {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin: 0 8px 25px;
}

.login-brand__logo {
    width: min(100%, 360px);
    height: auto;
    max-height: 178px;
    flex: 0 0 auto;
    object-fit: contain;
}

.login-brand__name {
    margin-bottom: 9px;
    color: #38cdb7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1;
    text-transform: uppercase;
}

.login-title {
    margin: 0;
    color: #f3f6fa;
    font-size: 2.12rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.login-subtitle {
    margin: 0 8px 34px;
    color: #8ea2b7;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 28px;
}

.login-field {
    display: grid;
    gap: 10px;
}

.login-field__label {
    color: #edf2f7;
    font-size: 0.98rem;
    font-weight: 700;
}

.login-screen .login-field .form-control {
    min-height: 57px;
    padding: 0 17px;
    background: rgba(11, 24, 37, 0.72);
    border: 1px solid rgba(137, 165, 190, 0.58);
    border-radius: 13px;
    color: #f3f7fb;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-screen .login-field .form-control::placeholder {
    color: #7f93a9;
    opacity: 1;
}

.login-screen .login-field .form-control:focus {
    background: rgba(11, 24, 37, 0.94);
    border-color: #38cdb7;
    box-shadow: 0 0 0 4px rgba(56, 205, 183, 0.12);
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field .form-control {
    width: 100%;
    padding-right: 58px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #829db3;
    font-size: 1.35rem;
    cursor: pointer;
    transition: color 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #38cdb7;
}

.password-toggle:focus-visible,
.workplace-toggle:focus-visible {
    border-radius: 8px;
    outline: 2px solid rgba(56, 205, 183, 0.55);
    outline-offset: 2px;
}

.login-submit {
    min-height: 62px;
    margin-top: 1px;
    border: 0;
    border-radius: 12px;
    background: #36cbb4;
    color: #06151c;
    font-size: 1.12rem;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(31, 196, 172, 0.12);
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: #46dcc5;
    box-shadow: 0 16px 36px rgba(31, 196, 172, 0.2);
    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-screen .errorlist {
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .login-screen {
        padding: 18px 12px;
    }

    .login-card {
        padding: 30px 22px 27px;
        transform: none;
        border-radius: 22px !important;
    }

    .login-brand {
        gap: 13px;
        margin: 0 0 22px;
    }

    .login-brand__logo {
        width: min(100%, 300px);
        max-height: 148px;
    }

    .login-brand__name {
        font-size: 0.7rem;
    }

    .login-title {
        font-size: clamp(1.65rem, 8vw, 2.05rem);
    }

    .login-subtitle {
        margin: 0 0 27px;
        font-size: 0.94rem;
    }

}
