/* auth-theme.css —— 专为 OpenIddict 7.0 设计的认证主题 */

:root {
    --army-blue: #003366;
    --matte-silver: #COCOCO;
    --champagne-gold: #C3AA78;
    --matte-silver-bg: #f5f5f5;
    --matte-silver-border: #d9d9d9;
    --champagne-gold-light: #fdf6f0;
    --army-blue-light: #e8f4ff;
}

/* ===== 布局基础 ===== */

.auth-layout-body {
    background-color: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* ===== 导航栏 ===== */

.auth-navbar {
    background: linear-gradient(90deg, var(--army-blue) 0%, #002244 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.auth-navbar .navbar-brand {
    color: white !important;
    font-weight: 500;
    font-size: 1.1rem;
}

.auth-navbar .navbar-brand .brand-icon {
    font-size: 1.4rem;
}

.auth-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
}

.auth-navbar .nav-link:hover {
    color: white !important;
}

.auth-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.auth-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 登录部分（如 _LoginPartial）可自定义按钮样式 */

/* ===== 主容器 ===== */

.auth-container {
    margin: 40px auto;
    padding: 30px;
}

.auth-card {
    background: white;
    border: 1px solid var(--matte-silver-border);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 35px;
}

.auth-card h2 {
    color: var(--army-blue);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
}

/* ===== 表单控件 ===== */

.form-label {
    color: #555;
    font-weight: 500;
}

.form-control {
    background: white;
    border: 1px solid var(--matte-silver-border);
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--champagne-gold);
    box-shadow: 0 0 0 3px rgba(195, 170, 120, 0.2);
    outline: none;
}

.form-text {
    font-size: 0.875rem;
    color: #777;
}

/* ===== 按钮 ===== */

.btn-primary {
    background: linear-gradient(45deg, var(--army-blue), var(--champagne-gold));
    border: none;
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-outline-secondary {
    border-color: var(--matte-silver-border);
    color: #555;
    border-radius: 25px;
    padding: 10px 24px;
}

.btn-outline-secondary:hover {
    background: var(--matte-silver-bg);
}

/* ===== 授权同意页面样式 ===== */

.consent-container .list-group-item {
    border-color: var(--matte-silver-border);
    padding: 15px;
}

.consent-container .list-group-item h5 {
    color: var(--army-blue);
    margin-bottom: 5px;
}

.consent-container .list-group-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== 状态提示 ===== */

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background: var(--army-blue-light);
    color: var(--army-blue);
}

.alert-warning {
    background: var(--champagne-gold-light);
    color: #8a6d3b;
    border-left: 4px solid var(--champagne-gold);
}

/* ===== 页脚 ===== */

.auth-footer {
    background: var(--matte-silver-bg);
    border-top: 1px solid var(--matte-silver-border);
    color: #777;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #666;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--army-blue);
}

/* ===== 响应式 ===== */

@media (max-width: 576px) {
    .auth-container {
        margin: 20px;
        padding: 20px;
    }

    .auth-card {
        padding: 25px;
    }

    .auth-card h2 {
        font-size: 1.4rem;
    }
}
