@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
}

body.gms-login {
    margin: 0;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    letter-spacing: 0.4px;
}

.gms-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #fff url('../images/gms-login-watermark.png') center center / min(92vw, 920px) no-repeat;
    pointer-events: none;
}

.gms-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 70px;
}

.gms-login-logo-top {
    text-align: center;
    margin-bottom: 12px;
}

.gms-login-logo-top img {
    max-width: 113px;
    max-height: 112px;
    width: auto;
    height: auto;
}

.gms-login-card {
    width: 100%;
    max-width: 400px;
    background: #eceef1;
    border-radius: 7px;
    padding: 10px 30px 0;
    overflow: hidden;
}

.gms-login-card h1 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: #4db3a5;
}

.gms-login-subtitle {
    display: none;
}

.gms-alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.gms-alert-error {
    background: #fbe1e3;
    color: #851735;
    border: 1px solid #f5c2c7;
}

.gms-alert-success {
    background: #e7f8ef;
    color: #067647;
    border: 1px solid #abefc6;
}

.gms-field {
    margin-bottom: 15px;
}

.gms-field label {
    display: none;
}

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

.gms-input {
    width: 100%;
    height: 44px;
    padding: 6px 12px;
    border: 1px solid #dde3ec;
    border-radius: 4px;
    background: #dde3ec;
    font: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.gms-input::placeholder {
    color: #8290a3;
}

.gms-input:focus {
    border-color: #c3ccda;
    background: #fff;
}

.gms-input-password {
    padding-right: 44px;
}

.gms-toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #8290a3;
    cursor: pointer;
    font-size: 16px;
}

.gms-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -30px;
    padding: 25px 30px;
    border-top: 1px solid #eee;
    background: #eceef1;
}

.gms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 2px;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.gms-btn-primary {
    background: #36c6d3;
    color: #fff;
}

.gms-btn-primary:hover {
    background: #27a4b0;
    color: #fff;
}

.gms-btn-link {
    background: transparent;
    color: #4db3a5;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    padding: 0;
    min-height: auto;
}

.gms-btn-link:hover {
    color: #27a4b0;
    text-decoration: underline;
}

.gms-login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-align: center;
    margin: 0;
    padding: 10px 16px 18px;
    color: #7a8ca5;
    font-size: 13px;
    line-height: 1.6;
    background: transparent;
}

.gms-back-home {
    display: none;
}

@media (max-width: 480px) {
    .gms-login-bg {
        background-size: min(110vw, 720px);
    }

    .gms-login-card {
        padding: 10px 20px 0;
    }

    .gms-actions {
        margin: 0 -20px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .gms-btn-link {
        text-align: center;
    }
}
