/* 数字登录页面样式 */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.auth-header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.auth-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 登录成功消息样式 */
.login-success-message {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.login-success-message h3 {
    color: #27ae60;
    margin: 15px 0 10px;
    font-size: 24px;
}

.login-success-message p {
    color: #555;
    margin: 8px 0;
    font-size: 16px;
}

.success-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #d5f4e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success-icon-container i {
    font-size: 40px;
    color: #27ae60;
}

/* 倒计时样式 */
.countdown-container {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.countdown-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 4;
}

.countdown-circle-fg {
    fill: none;
    stroke: #27ae60;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 170;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-text {
    margin-top: 8px;
    font-size: 13px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-text i {
    color: #7f8c8d;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 警告消息样式 */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.alert-success {
    background: #d5f4e6;
    border: 1px solid #a3e4c1;
    color: #27ae60;
}

.alert i {
    font-size: 18px;
}

/* 页脚链接 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 14px;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #2980b9;
}

.auth-footer p {
    margin: 8px 0;
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 15px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .form-control {
        font-size: 16px;
        padding: 10px;
    }
    
    .success-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .success-icon-container i {
        font-size: 30px;
    }
}
/* 在 digital_login.css 中添加以下样式 */

/* 提交动画效果 */
.form-control.submitting {
    animation: pulseSubmit 0.3s ease;
    border-color: #27ae60;
    background-color: #f8fff8;
}

@keyframes pulseSubmit {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* 输入框获得焦点时的效果 */
.form-control:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    from { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.3); }
    to { box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
}

/* 登录成功消息的动画 */
.login-success-message {
    animation: slideUpSuccess 0.5s ease;
}

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

/* 圆形进度条的动画 */
.countdown-circle-fg {
    animation: circleGrow 3s linear forwards;
}

@keyframes circleGrow {
    0% {
        stroke-dashoffset: 170;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 添加加载提示 */
.loading-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #95a5a6;
    animation: fadeIn 0.5s ease;
}

.loading-hint i {
    margin-right: 5px;
    color: #667eea;
}