/* 登录页面样式 */
body {
	background:
		radial-gradient(circle at 0 0, rgba(0, 136, 255, 0.45), transparent 55%),
		radial-gradient(circle at 100% 100%, rgba(255, 138, 60, 0.35), transparent 55%),
		url("../images/ALC3.jpeg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.login-box {
	background: rgba(255, 255, 255, 0.92);
	width: 420px;
	padding: 32px 32px 28px;
	border-radius: 14px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

h2 {
	text-align: center;
	color: #0f172a;
	margin-bottom: 8px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.login-subtitle {
	text-align: center;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 22px;
}

input[type="text"], input[type="password"], input[type="submit"] {
	width: 100%;
	padding: 11px 14px;
	margin: 8px 0;
	display: inline-block;
	border: 1px solid #d0d8e8;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 13px;
	transition: all 0.18s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
	border-color: #0088ff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.18);
}

 input[type="text"]:focus::placeholder, input[type="password"]:focus::placeholder {
	color: transparent;
}
input[type="submit"] {
	background: linear-gradient(135deg, #0088ff, #842eb7);
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.18s ease;
	border: none;
	margin-top: 16px;
}

input[type="submit"]:hover {
	background: linear-gradient(135deg, #006fd1, #7729a2);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

input[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

input[type="submit"]:disabled {
	background: #cbd5f0;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

label {
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
	color: #475569;
	font-size: 13px;
}

.captcha-box {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    gap: 10px;
}

.captcha-img {
    width: 150px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}

.captcha-img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    color: #d32f2f;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.error-message::before {
    margin-right: 5px;
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 20px;
        margin: 20px;
    }
    
    .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        height: 45px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    input[type="text"], input[type="password"], input[type="submit"] {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 平板设备优化 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .login-box {
        width: 350px;
        padding: 25px;
    }
}

/* 加载动画 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提交等待遮罩 */
.wait-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wait-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E6ECF8;
    box-shadow: 0 8px 24px rgba(40,56,90,.18);
    width: 320px;
    padding: 20px;
    text-align: center;
}

.wait-title {
    font-size: 16px;
    font-weight: 600;
    color: #2F3B66;
    margin-bottom: 4px;
}

.wait-desc {
    font-size: 13px;
    color: #2B2F36;
}

.wait-spinner {
    width: 28px;
    height: 28px;
    margin: 12px auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #367A90;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
