/**
 * AT My Login — 前端样式
 * ============================================
 * 目录：
 * 1. 容器 & 卡片
 * 2. Tab 切换
 * 3. 表单字段
 * 4. 按钮
 * 5. 链接 & 提示
 * 6. 图形验证码
 * ============================================
 */

/* ══════════════════════════════════════════
   1. 容器 & 卡片
   ══════════════════════════════════════════ */
.atml-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.atml-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.atml-card h3 {
    margin: 0 0 20px;
    font-size: 1.3em;
    text-align: center;
}

/* ══════════════════════════════════════════
   2. Tab 切换
   ══════════════════════════════════════════ */
.atml-tabs {
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.atml-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.atml-tab.active {
    color: #00ACDE;
    border-bottom-color: #00ACDE;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   3. 表单字段 & 面板
   ══════════════════════════════════════════ */
.atml-panel { display: none; }
.atml-panel.active { display: block; }

.atml-field { margin-bottom: 14px; }
.atml-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.atml-field input:focus {
    border-color: #00ACDE;
    outline: none;
}
.atml-field-sms {
    display: flex;
    gap: 10px;
}
.atml-field-sms input { flex: 1; }

/* ══════════════════════════════════════════
   4. 按钮
   ══════════════════════════════════════════ */
/* 按钮样式已迁移至 Bootstrap 5 */

/* ══════════════════════════════════════════
   5. 链接 & 提示消息
   ══════════════════════════════════════════ */
.atml-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}
.atml-link {
    color: #00ACDE;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.atml-link:hover { text-decoration: underline; }

.atml-notice {
    margin: 16px 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
.atml-notice.success { background: #e6f7e6; color: #2e7d32; }
.atml-notice.error   { background: #fdecea; color: #c62828; }

/* ══════════════════════════════════════════
   6. 图形验证码弹窗
   ══════════════════════════════════════════ */
.atml-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.atml-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
}
.atml-modal-body {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    min-width: 300px;
    max-width: 360px;
    animation: atml-modal-in .25s ease;
}
@keyframes atml-modal-in {
    from { opacity: 0; transform: translateY(-20px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.atml-modal-close {
    position: absolute;
    top: 8px; right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.atml-modal-close:hover { color: #333; }
.atml-captcha {
    margin-bottom: 14px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}
.atml-captcha-q {
    margin: 0 0 12px;
    font-size: 14px;
    text-align: center;
    color: #555;
}
.atml-captcha-q strong {
    font-size: 18px;
    color: #222;
}
.atml-captcha-refresh {
    margin: 6px 0 12px;
    text-align: center;
    font-size: 13px;
}
.atml-captcha-refresh a {
    color: #00ACDE;
    text-decoration: none;
}
.atml-captcha-refresh a:hover {
    text-decoration: underline;
}
/* .atml-captcha-confirm 样式已迁移至 Bootstrap 5 */
