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

body {
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.login-container {
    width: 420px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(15, 15, 25, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
            0 0 40px rgba(0, 119, 255, 0.25),
            0 0 120px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo span {
    color: #1e90ff;
}

.subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #b8c2d1;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #d7dce3;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #111827;
    color: white;
    font-size: 15px;
    transition: 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.2);
}

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0066ff, #00a2ff);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.35);
}

.extra-links {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.extra-links a {
    color: #7ab8ff;
    text-decoration: none;
    transition: 0.2s;
}

.extra-links a:hover {
    color: white;
}

.error-message {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ffb3b3;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.footer-text {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: #7b8594;
}

.bg-logo {
    position: absolute;
    width: 700px;
    opacity: 0.50;
    pointer-events: none;
    user-select: none;
}

#refererError.input-error {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 4px;
    min-height: 16px;
}

.hidden {
    display: none;
}

.verification-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    z-index: 1000;
}

.verification-modal.hidden {
    display: none;
}

.verification-modal-content {
    position: relative;

    width: min(420px, calc(100% - 30px));

    padding: 35px 30px;

    background: #fff;
    border-radius: 10px;

    text-align: center;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.verification-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;

    border: none;
    background: transparent;

    font-size: 24px;
    color: #777;

    cursor: pointer;
}

.verification-title {
    margin-bottom: 15px;

    font-size: 24px;
    font-weight: 600;
}

.verification-text {
    margin-bottom: 25px;

    color: #666;
    line-height: 1.5;
}

.verification-code-group {
    margin-bottom: 10px;
}

.verification-code-input {
    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;
    border-radius: 5px;

    font-size: 28px;
    font-weight: 600;

    text-align: center;
    letter-spacing: 8px;

    box-sizing: border-box;
}

.verification-code-input:focus {
    outline: none;
    border-color: #007bff;
}

.verification-resend {
    margin-top: 15px;

    border: none;
    background: none;

    color: #007bff;

    cursor: pointer;
}

.verification-resend:hover {
    text-decoration: underline;
}