/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

#app {
    max-width: 450px;
    width: 90%;
    margin-top: 50px;
}

.app-title {
    text-align: center;
    color: #343a40;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* 卡片样式 */
.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f7f7f7;
    font-size: 1.1em;
    font-weight: bold;
    color: #495057;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    background-color: #f7f7f7;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 表单元素 */
.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #007bff;
    outline: none;
}

/* 按钮样式 */
.btn {
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login {
    background-color: #007bff;
    color: white;
}

.btn-login:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-reset {
    background-color: #ffc107;
    color: #333;
    font-size: 1.1em;
    margin-top: 10px;
}

.btn-reset:hover:not(:disabled) {
    background-color: #e0a800;
}

.btn-link {
    background: none;
    color: #007bff;
    width: auto;
    text-align: left;
    padding: 0;
    font-weight: normal;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 提示信息 */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-state {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.message-text {
    text-align: center;
    margin-top: 10px;
    padding: 0 5px;
    font-weight: 500;
}

.small-text {
    font-size: 0.9em;
    color: #6c757d;
}

.text-success { color: #28a745; }
.text-danger { color: #dc3545; }