* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: #f8f8f8;
    color: #333;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

#app {
    width: 100%;
    min-height: 100vh;
}

.top {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    font-size: 12.5px;
}

.top-image {
    display: block;
    width: 100%;
    height: auto;
}

.logo {
    display: block;
    width: 80px;
    height: 42px;
    margin-top: 8px;
    object-fit: contain;
}

.slogan {
    margin-top: 15px;
}

.safety {
    margin-top: 5px;
    color: #08d411;
}

.login-card {
    display: flex;
    width: min(96%, 520px);
    min-height: 400px;
    margin: 30px auto 20px;
    padding: 16px 0 28px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .05);
}

.login-card h1 {
    color: #0777ed;
    font-size: 17px;
    font-weight: 600;
}

.login-tabs {
    display: flex;
    min-height: 56px;
    justify-content: center;
    align-items: center;
    margin: 5px 0 3px;
}

.tab-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #409eff;
    transform: scale(1.3);
}

.tab-label {
    margin-top: 8px;
    color: #409eff;
    font-size: 14px;
    font-weight: 500;
}

#register-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.input-row {
    display: flex;
    width: 85%;
    height: 34px;
    margin: 7px 0;
    padding: 0 7px;
    align-items: center;
    border: 1px solid #d9d9d8;
    border-radius: 5px;
    background: #fff;
}

.input-row:focus-within {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, .1);
}

.input-row input {
    width: 100%;
    height: 32px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #555;
    font-size: 12px;
}

.input-row input::placeholder {
    color: #9b9b9b;
}

.field-icon {
    position: relative;
    width: 18px;
    height: 20px;
    margin-right: 7px;
    flex: 0 0 18px;
    color: #666;
}

.phone-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 9px;
    height: 16px;
    border: 1.7px solid currentColor;
    border-radius: 2px;
}

.phone-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    bottom: 4px;
    width: 3px;
    height: 1px;
    background: currentColor;
}

.lock-icon::before,
.shield-icon::before {
    content: "";
    position: absolute;
}

.lock-icon::before {
    left: 3px;
    top: 9px;
    width: 12px;
    height: 9px;
    border-radius: 2px;
    background: #666;
}

.lock-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 8px;
    height: 10px;
    border: 1.7px solid #666;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.shield-icon::before {
    left: 2px;
    top: 1px;
    width: 14px;
    height: 17px;
    border: 1.7px solid #666;
    border-radius: 7px 7px 9px 9px;
}

.shield-icon::after {
    content: "\2713";
    position: absolute;
    left: 5px;
    top: 1px;
    color: #666;
    font-size: 11px;
}

.flag {
    width: 20px;
    height: 14px;
    margin-right: 7px;
    object-fit: cover;
}

.divider {
    width: 1px;
    height: 19px;
    margin-right: 3px;
    background: #d9d9d8;
}

#submit {
    width: 88%;
    height: 35px;
    margin-top: 15px;
    border: 0;
    border-radius: 5px;
    outline: 0;
    background: #0777ed;
    color: #fff;
    cursor: pointer;
}

#submit:disabled {
    cursor: wait;
    opacity: .65;
}

.error {
    display: none;
    width: 85%;
    margin: 0 0 5px;
    padding: 8px 10px;
    border-radius: 5px;
    background: #fff1f1;
    color: #a61b1b;
    font-size: 12px;
}

.error.visible {
    display: block;
}

.website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
}

@media (min-width: 600px) {
    .top-image {
        max-height: 82px;
        object-fit: cover;
    }
}
