.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.login-head {
    padding: 20px 22px 6px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.login-title {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.login-sub {
    margin-top: 2px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.3;
}

.login-msg {
    margin: 10px 22px 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    max-height: 120px;
    transition: opacity .35s ease, transform .35s ease, max-height .35s ease, margin .35s ease, padding .35s ease, border-width .35s ease;
}

.login-msg.msg-hide {
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0;
}

.login-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-msg-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.login-form {
    padding: 14px 22px 22px;
    display: grid;
    gap: 14px;
}

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

.login-field label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.login-field input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.login-submit {
    width: 100%;
    margin-top: 4px;
    border: 1px solid #2563eb;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 11px 12px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

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

    .login-head,
    .login-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-msg {
        margin-left: 16px;
        margin-right: 16px;
    }
}
