/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 450px;
    width: 90%;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #4caf50;
    text-decoration: none;
    transform: rotate(90deg);
}

/* 当模态框打开时禁止滚动 */
body.modal-open {
    overflow: hidden;
}

/* 模态框内容样式 */
.modal .auth-box {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.7), inset 0 0 10px rgba(76, 175, 80, 0.2);
    transition: box-shadow 0.3s;
}

.modal .auth-box:hover {
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.9), inset 0 0 15px rgba(76, 175, 80, 0.3);
}

.modal .auth-title {
    text-align: left;
    margin-bottom: 25px;
    color: #fff;
    font-size: 24px;
    padding-left: 5px;
    position: relative;
}

.modal .auth-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #4caf50;
    box-shadow: 0 0 8px #4caf50;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
}

.modal .form-control {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 3px;
    color: #fff;
    box-sizing: border-box;
    transition: all 0.3s;
}

.modal .form-control:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal .form-text {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.modal .form-check {
    display: flex;
    align-items: center;
}

.modal .form-check-input {
    margin-right: 8px;
    accent-color: #4caf50;
}

.modal .form-check-label {
    font-size: 14px;
    color: #ccc;
}

.modal .btn-full {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.modal .btn-full:hover {
    background-color: #45a049;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

.modal .btn-full:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal .btn-full:hover:before {
    left: 100%;
}

.modal .auth-links {
    margin-top: 20px;
    text-align: center;
}

.modal .auth-links a {
    color: #4caf50;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.modal .auth-links a:hover {
    color: #fff;
    text-shadow: 0 0 5px #4caf50;
}

.modal .auth-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #4caf50;
    transition: width 0.3s;
}

.modal .auth-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 5px #4caf50;
}

.modal .alert {
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: alertFadeIn 0.5s;
}

@keyframes alertFadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b6b;
}

.modal .alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #2ecc71;
}

/* 导航栏登录注册按钮样式 */
.auth-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #4caf50;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 3px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.auth-btn:hover {
    background-color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
    transform: translateY(-2px);
}

.auth-btn:active {
    transform: translateY(0);
}

/* 表单输入焦点效果 */
.modal .form-group.input-focus label {
    color: #4caf50;
}

.modal .form-control.filled {
    background-color: rgba(255, 255, 255, 0.08);
}

/* 按钮加载状态 */
.modal .btn-full:disabled {
    background-color: #2d7a30;
    cursor: not-allowed;
    opacity: 0.8;
} 