* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 12px;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 34%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.07), transparent 32%),
        linear-gradient(135deg, #eef4f8 0%, #e5eef4 48%, #dce9ef 100%);
}

.wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 88px;
}

.login-topbar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.login-language-dropdown {
    position: relative;
}

.login-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(203, 213, 225, 0.9);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.login-language-switch:hover,
.login-language-switch:focus {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
}

.login-language-caret {
    font-size: 12px;
    transition: transform .2s ease;
}

.login-language-dropdown.is-open .login-language-caret {
    transform: rotate(180deg);
}

.login-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 128px;
    padding: 8px 0;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.login-language-dropdown.is-open .login-language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-language-menu a {
    display: block;
    padding: 9px 14px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.login-language-menu a:hover,
.login-language-menu a:focus {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.08);
}

.wrapper .container {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 234, 254, 0.92);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    padding: 32px;
}

.container .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 16px;
}

.container .logo i {
    font-size: 28px;
    color: #14b8a6;
    text-shadow: none;
}

.container .logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-shadow: none;
}

.container .logo span {
    font-size: 22px;
    font-weight: 700;
}

.login-form {
    position: relative;
    text-align: left;
}

.login-form .row {
    position: relative;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.login-form input {
    font-size: 14px;
    outline: 0;
    border: 1px solid #d1d9e6;
    background-color: #fff;
    width: 100%;
    border-radius: 14px;
    padding: 14px 46px 14px 14px;
    margin-bottom: 16px;
    display: block;
    text-align: left;
    color: #475569;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-weight: 400;
}

.login-form input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.login-form .login-input-icon {
    color: #94a3b8;
    top: 41px;
    right: 12px;
    z-index: 1;
    position: absolute;
    display: block;
    width: 24px;
    height: 24px;
    text-align: center;
    font-size: 18px !important;
}

.login-submit-btn {
    outline: 0;
    background: linear-gradient(135deg, #1abc9c 0%, #14b8a6 100%);
    border: 0;
    padding: 12px 15px;
    color: #fff;
    border-radius: 14px;
    width: 100%;
    cursor: pointer;
    font: 16px/1.5 Lucida Grande,Lucida Sans Unicode,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,sans-serif;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.24);
}

.login-submit-btn:hover {
    opacity: 0.95;
}

.login-code-row {
    margin-bottom: 16px;
}

.login-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.login-code-header .login-label {
    margin-bottom: 0;
}

.login-code-switch {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.login-code-switch:hover,
.login-code-switch:focus {
    color: #0f766e;
}

.login-code-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 12px;
    align-items: center;
}

.login-code-body input {
    margin-bottom: 0;
    padding-right: 14px;
}

.login-code-body .authcode {
    position: static;
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    object-fit: contain;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login-code-body .authcode:hover,
.login-code-body .authcode:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
    transform: translateY(-1px);
}

.login-aux-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.login-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.22);
    bottom: -160px;
    -webkit-animation: square 25s infinite;
    animation: square 25s infinite;
    -webkit-transition-timing-function: linear;
    transition-timing-function: linear;
}

.bg-bubbles li:nth-child(1) { left: 10%; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 80px; height: 80px; -webkit-animation-delay: 2s; animation-delay: 2s; -webkit-animation-duration: 17s; animation-duration: 17s; }
.bg-bubbles li:nth-child(3) { left: 25%; -webkit-animation-delay: 4s; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; -webkit-animation-duration: 22s; animation-duration: 22s; background-color: rgba(255, 255, 255, 0.28); }
.bg-bubbles li:nth-child(5) { left: 70%; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 120px; height: 120px; -webkit-animation-delay: 3s; animation-delay: 3s; background-color: rgba(255, 255, 255, 0.18); }
.bg-bubbles li:nth-child(7) { left: 32%; width: 160px; height: 160px; -webkit-animation-delay: 7s; animation-delay: 7s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 20px; height: 20px; -webkit-animation-delay: 15s; animation-delay: 15s; -webkit-animation-duration: 40s; animation-duration: 40s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 10px; height: 10px; -webkit-animation-delay: 2s; animation-delay: 2s; -webkit-animation-duration: 40s; animation-duration: 40s; background-color: rgba(255, 255, 255, 0.24); }
.bg-bubbles li:nth-child(10) { left: 90%; width: 160px; height: 160px; -webkit-animation-delay: 11s; animation-delay: 11s; }

@-webkit-keyframes square {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    100% { -webkit-transform: translateY(-700px) rotate(600deg); transform: translateY(-700px) rotate(600deg); }
}

@keyframes square {
    0% { -webkit-transform: translateY(0); transform: translateY(0); }
    100% { -webkit-transform: translateY(-700px) rotate(600deg); transform: translateY(-700px) rotate(600deg); }
}

button[disabled],
button[disabled] button {
    color: #fff;
    opacity: 1;
    cursor: default;
}

.copyright {
    text-align: center;
    color: #6b7a90;
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    line-height: 25px;
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.copyright-brand,
.copyright-browser {
    color: #7b8aa1;
    font-weight: 400;
}

.copyright-link {
    color: #365d8f;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.copyright-link:hover,
.copyright-link:focus {
    color: #0f766e;
    text-decoration: underline;
}

.login_tips {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.tips_msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    line-height: 1.5;
    color: #991b1b;
    margin: 0 auto;
    border-radius: 999px;
    width: auto;
    max-width: 400px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(255, 248, 248, 0.98), rgba(254, 226, 226, 0.96));
    border: 1px solid rgba(248, 113, 113, 0.28);
    padding: 10px 16px;
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.12);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}

.tips_msg.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tips_msg.is-hiding {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
}

.tips_msg i {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 12px;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

.tips_msg span {
    display: block;
}

.password-sys-div {
    position: relative;
}

.password-eye-span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-1px);
    cursor: pointer;
    color: #94a3b8;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}

.password-eye-span:hover {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.08);
}

.password-eye-span.is-active {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.password-eye-span .fa {
    font-size: 15px !important;
    line-height: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
}

.login-modal-form {
    background: #eef5fb;
}

.login-modal-body {
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.login-layer-skin.layui-layer {
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24) !important;
}

.login-layer-skin .layui-layer-title {
    height: 52px;
    line-height: 52px;
    padding: 0 18px;
    border: 0;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.login-layer-skin .layui-layer-setwin {
    top: 18px;
    right: 14px;
}

.login-layer-skin .layui-layer-setwin .layui-layer-close1 {
    color: rgba(255, 255, 255, 0.88);
}

.login-layer-skin .layui-layer-content {
    background: #fff;
}

.login-layer-skin .layui-layer-btn {
    padding: 12px 18px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.login-layer-skin .layui-layer-btn .layui-layer-btn0,
.login-layer-skin .layui-layer-btn .layui-layer-btn1 {
    min-width: 78px;
    height: 36px;
    line-height: 36px;
    border-radius: 10px;
    text-align: center;
    border: 0;
    margin-left: 8px;
}

.login-layer-skin .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg, #1abc9c 0%, #14b8a6 100%);
    color: #fff;
}

.login-layer-skin .layui-layer-btn .layui-layer-btn1 {
    background: #f1f5f9;
    color: #64748b;
}

.login-modal-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.login-modal-copy {
    margin-bottom: 12px;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.login-modal-grid {
    display: grid;
    gap: 12px;
}

.login-modal-field {
    position: relative;
}

.login-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.login-modal-field .form-control,
.login-mobile-code-row .form-control {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #d1d9e6;
    box-sizing: border-box;
    box-shadow: none;
    padding: 8px 12px;
}

.login-mobile-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    align-items: center;
}

.login-send-btn {
    margin: 0;
    height: 38px;
    border-radius: 10px;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(135deg, #1abc9c 0%, #14b8a6 100%) !important;
    border-color: #14b8a6 !important;
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(20, 184, 166, 0.18);
}

.login-send-btn:hover,
.login-send-btn:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #16a394 0%, #0f9f90 100%) !important;
}

.login-send-btn.is-countdown {
    background: #f1f5f9 !important;
    border-color: #d9e2ec !important;
    color: #64748b !important;
    box-shadow: none;
}

@media (max-width: 767px) {
    .wrapper {
        padding: 20px 12px 72px;
    }

    .login-topbar {
        top: 12px;
        right: 12px;
    }

    .login-language-switch {
        height: 36px;
        padding: 0 12px;
        gap: 6px;
    }

    .login-language-menu {
        min-width: 116px;
    }

    .wrapper .container {
        max-width: 100%;
    }

    .login-card {
        padding: 22px 16px 18px;
        border-radius: 20px;
    }

    .container .logo {
        justify-content: center;
        padding-bottom: 6px;
    }

    .container .logo h1,
    .container .logo span {
        font-size: 20px;
    }

    .login-layer-skin.layui-layer {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
    }

    .login_tips {
        margin-top: 12px;
    }

    .tips_msg {
        width: 100%;
        max-width: none;
        border-radius: 14px;
        justify-content: center;
        padding: 10px 14px;
    }

    .login-code-header {
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .login-code-switch {
        margin-left: auto;
        font-size: 11px;
    }

    .login-code-body {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 10px;
    }

    .login-code-body .authcode {
        max-width: none;
        height: 38px;
        padding: 5px 8px;
    }

    .login-mobile-code-row {
        grid-template-columns: 1fr;
    }

    .password-eye-span {
        top: 50%;
        transform: translateY(-2px);
    }
}

@media (max-width: 360px) {
    .login-code-header {
        align-items: flex-start;
    }

    .login-code-switch {
        margin-left: 0;
    }

    .login-code-body {
        grid-template-columns: 1fr;
    }

    .login-code-body .authcode {
        max-width: 128px;
    }
}
