:root {
    --bg-color: #f8f9fa; 
    --form-bg-color: transparent; 
    --primary-color: #1e88e5;
    --text-color-dark: white; 
    --text-color-light: #6c757d; 
    --border-color: rgba(0,0,0,0.08);
    --shadow-color: rgba(0, 0, 0, 0.05);
	--error-bg: #f8d7da;
	--error-text: #721c24;
	--error-border: #f5c6cb;
	--success-bg: #d1e7dd;
	--success-text: #0f5132;
	--success-border: #badbcc;
	--info-text: #D9A821;
	--toast-text-color: #333;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html, body {
	height: 100%;
}

body { 
    font-family: 'Inter', sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    background-color: var(--bg-color); 
}

.auth-wrapper { 
    width: 100%; 
    max-width: 420px; 
    animation: fadeIn 0.7s ease-out forwards;
    padding: 20px; 
}

.auth-box { 
    background-color: var(--form-bg-color); 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px var(--shadow-color); 
    border: 1px solid var(--border-color); 
}

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

h1 { 
    font-size: 24px; 
    font-weight: 600; 
    margin-bottom: 4px; 
}

p { 
    font-size: 14px; 
    color: var(--text-color-light); 
}

.form-group { 
    margin-bottom: 24px; 
}

.form-label-group { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
}

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

.form-link { 
    font-size: 13px; 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 500; 
}

.form-control { 
    width: 100%; 
    height: 48px; 
    padding: 0 16px; 
    background-color: #f1f3f5; 
    border: 1px solid transparent; 
    border-radius: 8px; 
    font-size: 16px; 
    transition: all 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	background-color: var(--form-bg-color);
	box-shadow: 0 0 0 3px rgb(41, 160, 202, 0.2);
}

.input-group {
	display: flex;
	gap: 8px;
}

.input-group .form-control {
	border-radius: 8px;
	flex: 1;
}

.btn-send-code {
	height: 48px;
	border: 1px solid var(--primary-color);
	background-color: transparent;
	padding: 0 16px;
	border-radius: 8px;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-send-code:hover:not(:disabled) {
	background-color: #1e88e5;
    color: white;
}

.btn-send-code:disabled {
	cursor: not-allowed;
	background-color: #e9ecef;
}

.btn-submit { 
    width: 100%; 
    padding: 14px; 
    border: none; 
    border-radius: 8px; 
    background-color: var(--primary-color); 
    color: #fff; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
    margin-top: 8px; 
}

.btn-submit:hover {
	background-color: #307BBB;
}

.feedback-container { 
    min-height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 12px; 
}

.feedback-message {
	width: 100%;
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	animation: fadeIn 0.3s ease;
}

.feedback-message.error {
	background-color: var(--error-bg);
	color: var(--error-text);
	border-color: var(--error-border);
}

.feedback-message.success {
	background-color: var(--success-bg);
	color: var(--success-text);
	border-color: var(--success-border);
}

.error-message { 
    background-color: #f8d7da; 
    color: #721c24; 
    padding: 10px 16px; 
    border-radius: 8px; 
    text-align: center; 
    font-size: 14px; 
    margin-bottom: 20px; 
}

.auth-footer { 
    text-align: center; 
    margin-top: 24px; 
    font-size: 14px; 
    color: var(--text-color-light); 
}

.auth-footer a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 600; 
}

.center-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important; 
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 1000;
    min-width: 320px;
    max-width: 400px;
    text-align: center;
    animation: toastFadeIn 0.3s ease forwards !important;
    opacity: 0;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.center-toast h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--toast-text-color);
}

.center-toast p {
    font-size: 14px;
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.center-toast .toast-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.center-toast .btn-toast {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.center-toast .btn-toast-primary {
    background-color: var(--primary-color);
    color: white;
}

.center-toast .btn-toast-primary:hover {
    background-color: #307BBB;
}

.center-toast .btn-toast-secondary {
    background-color: #f1f3f5;
    color: var(--text-color-light);
    border: 1px solid var(--border-color);
}

.center-toast .btn-toast-secondary:hover {
    background-color: #e9ecef;
}

/* 提示框标题颜色 */
.toast-success {
    color: var(--success-text);
}

.toast-error {
    color: var(--error-text);
}

.toast-info {
    color: var(--info-text);
}

/* 遮罩层 */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: toastFadeIn 0.3s ease forwards;
    opacity: 0;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.password-weak { 
    color: #e74c3c; 
}

.password-medium { 
    color: #f39c12; 
}

.password-strong { 
    color: #27ae60; 
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}