/* ===== 认证容器 ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* ===== 头部样式 ===== */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img {
    height: 80px;
    margin-bottom: 15px;
}

.auth-header h1 {
    color: var(--hospital-blue);
    font-size: 28px;
    font-weight: 700;
}

/* ===== 表单元素 ===== */
.auth-form .form-group {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.auth-form input {
    width: 100%;
    padding: 14px 40px 14px 15px; /* 增加右侧内边距给图标留空间 */
    height: 48px; /* 固定高度 */
    line-height: 20px; /* 文字垂直居中 */
    /* 其他原有样式保持不变 */
}

.auth-form input:focus {
    border-color: var(--hospital-blue);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
    outline: none;
}

.auth-form .input-icon {
    position: absolute;
    right: 15px;
    top: 70%; /* 改为基于50%定位 */
    transform: translateY(-50%); /* 垂直居中关键 */
    color: #aaa;
    font-size: 16px; /* 适当增大图标 */
    pointer-events: none; /* 防止干扰输入 */
}


/* ===== 按钮 ===== */
.auth-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--hospital-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: var(--hospital-dark-blue);
    transform: translateY(-2px);
}

.auth-btn i {
    margin-right: 8px;
}

/* ===== 错误提示 ===== */
.auth-error {
    color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.1);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.auth-error {
    align-items: flex-start; /* 图标与文字顶部对齐 */
}

/* ===== 底部链接 ===== */
.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--dark-gray);
}

.auth-footer a {
    color: var(--hospital-blue);
    margin: 0 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form input {
        padding: 12px;
    }
}