/*
Theme Name: SONNHA
Theme URI: http://foxtheme.net
Author: Foxtheme
Author URI: http://foxtheme.net
Description: Chức năng Sơn Nhà
Version: 2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simpletheme
*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
* ::-webkit-scrollbar{width:5px;height:7px}
* ::-webkit-scrollbar-track{background:transparent}
* ::-webkit-scrollbar-thumb{background:#233563;border-radius:0px}
* ::-webkit-scrollbar-corner{background:transparent}
body {
	background-color: #f8f9fa;
	color: #333;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px 20px 20px;
	background: linear-gradient(90deg, #0f172a, #374c6b);
}
* input, * textarea {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.login-container {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 40px;
	width: 100%;
	max-width: 600px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
	text-align: center;
	margin-bottom: 20px;
}

.logo h1 {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.form-header {
	text-align: center;
	margin-bottom: 30px;
}
.form-header p {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

.form-group {
	margin-bottom: 20px;
	opacity: 1;
	transition: all 0.3s ease;
}

.form-group.hidden {
	opacity: 0;
	max-height: 0;
	margin-bottom: 0;
	overflow: hidden;
}

.form-group.show {
	opacity: 1;
	max-height: 200px;
	margin-bottom: 20px;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

input[type="email"],
input[type="password"], input[type="tel"] {
	width: 100%;
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #333;
	font-size: 16px;
	transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus, , input[type="tel"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	background: #fff;
}

input::placeholder {
	color: #999;
}

.btn {
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.btn-primary {
	background: #374c6b;
	color: #fff;
}

.btn-primary:hover {
	background: #0f172a;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
	background: #e9ecef;
	color: #6c757d;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.divider {
	text-align: center;
	margin: 20px 0;
	position: relative;
	color: #999;
	font-size: 14px;
}

.divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #ddd;
	z-index: 1;
}

.divider span {
    background: #f8f9fa;
    padding: 3px 16px;
    position: relative;
    z-index: 2;
    border-radius: 8px;
    font-size: 12px;
}

.vip-badge {
    display: inline-block;
    background: linear-gradient(90deg, #0f172a, #374c6b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.links {
	text-align: center;
	margin-top: 24px;
	color: #575858;
}

.links a {
	color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 0 8px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.links svg{margin-right:7px;}
.links a:hover {
	color: #5a6fd8;
}

.forgot-password-link {
	text-align: center;
	margin-top: 16px;
}

.forgot-password-link a {
	color: #667eea;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.forgot-password-link a:hover {
	color: #5a6fd8;
	text-decoration: underline;
}

.logged-in-info {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.logged-in-info p {
	margin: 0 0 10px 0;
	color: #333;
}

.logged-in-info p:last-child {
	margin-bottom: 0;
}

.actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-secondary {
	background: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background: #5a6268;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.error-message {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	display: none;
}

.success-message {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	display: none;
}

@media (max-width: 480px) {
	.login-container {
		padding: 24px;
	}
	
	.form-header h2 {
		font-size: 28px;
	}
}

.loading {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
	margin-right: 8px;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Back button styles - light */
.back-btn {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 100%;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    transition: all 0.3s ease;
    align-content: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.back-btn:hover {
    color: #222324;
    border-color: #bdbdbd;
    background: #f5f5f5;
}

/* Input disabled state */
input[type="email"]:disabled,
input[type="password"]:disabled {
	background: rgb(159 159 159 / 2%);
    border-color: rgb(109 109 109 / 10%);
    color: rgb(105 105 105 / 60%);
    cursor: not-allowed;
}

/* Forgot password link */
.forgot-password-link {
	text-align: center;
}
