html, body {
    min-height: 100%;
}

.login-page {
    margin: 0;
    min-height: 100vh;
    background: #f5f7f8;
    color: #1d2733;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.login-topbar {
    width: 100%;
    height: 51px;
    background: #20b32d;
}

.login-wrap {
    min-height: calc(100vh - 51px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 20px 55px;
    position: relative;
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 558px;
    padding: 44px 34px 31px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 35px rgba(35, 48, 58, .12);
    text-align: center;
}

.qr-logo {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    position: relative;
}

.qr-logo span {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 7px solid #20b32d;
    border-radius: 5px;
}

.qr-logo span:nth-child(1) { top: 2px; left: 2px; }
.qr-logo span:nth-child(2) { top: 2px; right: 2px; }
.qr-logo span:nth-child(3) { bottom: 2px; left: 2px; }
.qr-logo span:nth-child(4) { bottom: 7px; right: 7px; width: 15px; height: 15px; border-width: 5px; }

.login-card h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: #1c2835;
}

.login-card h1 strong {
    color: #20b32d;
    font-weight: 600;
}

.login-subtitle {
    margin: 10px 0 36px;
    color: #7b8794;
    font-size: 16px;
}

.login-field {
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid #d6dce1;
    border-radius: 7px;
    margin-bottom: 20px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.login-field:focus-within {
    border-color: #20b32d;
    box-shadow: 0 0 0 3px rgba(32, 179, 45, .10);
}

.login-field > i:first-child {
    width: 66px;
    color: #20b32d;
    font-size: 22px;
}

.login-field input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    font-size: 17px;
    color: #34404d;
    background: transparent;
    padding: 0 15px 0 0;
}

.login-field input::placeholder {
    color: #8995a3;
}

.password-toggle {
    width: 58px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #8995a3;
    font-size: 19px;
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 57px;
    margin-top: 10px;
    border: 0;
    border-radius: 6px;
    background: #20b32d;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.login-button:hover {
    background: #1da629;
}

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

.login-error {
    margin: -14px 0 20px;
    padding: 11px 14px;
    border-radius: 6px;
    background: #fff2f2;
    border: 1px solid #f0caca;
    color: #b3261e;
    font-size: 14px;
    text-align: left;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 46px;
    color: #8290a0;
}

.login-divider span {
    height: 1px;
    flex: 1;
    background: #d9dfe4;
}

.login-divider small {
    white-space: nowrap;
    font-size: 13px;
}

.login-pattern {
    position: fixed;
    width: 190px;
    height: 190px;
    opacity: .35;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(#dfe4e7 0 0) 0 0/82px 82px no-repeat,
        linear-gradient(#f5f7f8 0 0) 18px 18px/46px 46px no-repeat,
        linear-gradient(#dfe4e7 0 0) 108px 0/82px 82px no-repeat,
        linear-gradient(#f5f7f8 0 0) 126px 18px/46px 46px no-repeat,
        linear-gradient(#dfe4e7 0 0) 0 108px/82px 82px no-repeat,
        linear-gradient(#f5f7f8 0 0) 18px 126px/46px 46px no-repeat,
        linear-gradient(#dfe4e7 0 0) 108px 108px/82px 82px no-repeat,
        linear-gradient(#f5f7f8 0 0) 126px 126px/46px 46px no-repeat;
}

.login-pattern-top {
    top: 78px;
    right: 12px;
    transform: rotate(-4deg);
}

.login-pattern-bottom {
    bottom: 30px;
    left: -20px;
    transform: rotate(8deg);
}

@media (max-width: 600px) {
    .login-topbar { height: 42px; }
    .login-wrap { min-height: calc(100vh - 42px); padding: 25px 14px 35px; }
    .login-card { padding: 34px 20px 25px; }
    .login-card h1 { font-size: 27px; }
    .login-subtitle { margin-bottom: 28px; }
    .login-pattern { opacity: .18; transform: scale(.7); }
    .login-pattern-top { right: -35px; }
    .login-pattern-bottom { left: -60px; }
}


.login-links {
    margin-top: 22px;
    text-align: center;
}
.login-links a {
    color: #20b32d;
    text-decoration: none;
    font-size: 14px;
}
.login-links a:hover { text-decoration: underline; }
.login-success {
    margin: -14px 0 20px;
    padding: 11px 14px;
    border-radius: 6px;
    background: #effaf1;
    border: 1px solid #bde6c3;
    color: #187a24;
    font-size: 14px;
    text-align: left;
}
.password-field .field-icon {
    width: 66px;
    color: #20b32d;
    font-size: 22px;
    flex: 0 0 66px;
}
.password-field .password-toggle {
    flex: 0 0 58px;
}
.login-link-separator {
    color: #c7ced5;
    margin: 0 8px;
    font-size: 13px;
}
