/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    margin: 50px auto;
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--accent);
}

.tabs {
    display: flex;
    background-color: var(--bg-card);
}

.tab-link {
    flex: 1;
    padding: 20px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-link.active {
    border: unset;
    color: var(--accent);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.verification-group {
    display: flex;
    gap: 10px;
}

.verification-group .form-control {
    flex: 1;
}

.get-code-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.get-code-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 42, 109, 0.5);
}

.get-code-btn:disabled {
    /* background: var(--text-secondary); */
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: left;
}

.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.checkbox-group a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 42, 109, 0.5);
    transform: translateY(-5px);
}

/* 新添加的样式 - 没有账号链接 */
.no-account {
    text-align: right;
    margin: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.no-account a {
    color: #ff0040;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.no-account a:hover {
    color: #ff3366;
    text-decoration: underline;
}