﻿/* ===============================
   Login Page
================================ */
.login-page {
    color: #ffffff;
}

.login-box {
    max-width: 520px;
    margin: 0 auto;
    padding: 46px 44px 42px 44px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 55px rgba(0,0,0,.18);
}

.login-head {
    margin-bottom: 34px;
    text-align: center;
}

.login-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #00CFA9;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .8px;
}

.login-head span i {
    font-size: 18px;
}

.login-head h1 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 700;
}

.login-head p {
    max-width: 390px;
    margin: 0 auto;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.65;
}

.login-form-row {
    margin-bottom: 20px;
}

.login-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.login-form-row label em {
    color: #00CFA9;
    font-style: normal;
}

.login-input-box {
    position: relative;
}

.login-input-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #00CFA9;
    font-size: 16px;
}

.login-input-box input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    line-height: 48px;
    outline: none;
}

.login-input-box input:focus {
    border-color: #00CFA9;
    box-shadow: 0 0 0 3px rgba(0,207,169,.15);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 26px 0;
    gap: 16px;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.login-options input {
    margin: 0;
}

.login-options a {
    color: #00CFA9;
    font-size: 14px;
    text-decoration: none;
}

.login-options a:hover {
    color: #00A4FD;
}

.login-submit-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 26px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff;
    font-size: 16px;
    line-height: 48px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
}

.login-submit-btn i {
    margin-left: 10px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,164,253,.28);
}

.login-submit-btn.disabled,
.login-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-register {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.login-register a {
    color: #00CFA9;
    font-weight: 600;
    text-decoration: none;
}

.login-register a:hover {
    color: #00A4FD;
}


/* ===============================
   Login Popup
================================ */
.login-pop-mask {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,.48);
}

.login-pop {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-pop-box {
    position: relative;
    width: 390px;
    max-width: calc(100% - 40px);
    padding: 38px 30px 30px 30px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.login-pop-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f2f5f8;
    color: #666666;
    font-size: 14px;
    line-height: 30px;
    cursor: pointer;
    transition: all .25s ease;
}

.login-pop-close:hover {
    background: #ff5f6d;
    color: #ffffff;
}

.login-pop-loading {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px auto;
    display: none;
    border: 4px solid #e8f6ff;
    border-top-color: #00A4FD;
    border-right-color: #00CFA9;
    border-radius: 50%;
    animation: loginPopLoading .9s linear infinite;
}

@keyframes loginPopLoading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.login-pop-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px auto;
    display: none;
    border-radius: 50%;
    line-height: 52px;
    font-size: 25px;
    color: #ffffff;
}

.login-pop-icon.success {
    display: block;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
}

.login-pop-icon.success::before {
    content: "✓";
}

.login-pop-icon.error {
    display: block;
    background: linear-gradient(90deg, #ff5f6d 0%, #ff9966 100%);
}

.login-pop-icon.error::before {
    content: "!";
    font-weight: 700;
}

.login-pop-title {
    margin-bottom: 10px;
    color: #111111;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.login-pop-text {
    margin-bottom: 24px;
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
}

.login-pop-ok {
    display: none;
    min-width: 125px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
}

.login-pop-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,164,253,.25);
}


/* ===============================
   Mobile
================================ */
@media screen and (max-width: 768px) {
    .login-page {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .login-box {
        padding: 36px 22px 32px 22px;
        border-radius: 10px;
    }

    .login-head {
        margin-bottom: 28px;
    }

    .login-head h1 {
        font-size: 1.7rem;
        line-height: 1.4;
    }

    .login-head p {
        font-size: 14px;
        line-height: 1.7;
    }

    .login-options {
        display: block;
    }

    .login-options label {
        margin-bottom: 12px;
    }

    .login-submit-btn {
        height: 44px;
        line-height: 44px;
        font-size: 15px;
    }

    .login-pop-box {
        padding: 34px 22px 26px 22px;
    }

    .login-pop-title {
        font-size: 20px;
    }
}