/* Code for /uix/login.css */
/* MyDayHub - Login/Auth Page Styles */
/* @version 8.5 Avellanas */
/* @author Alex & Gemini & Claude & Cursor*/
/* Theme-aware styles for a clean, centered layout */

/* CSS Variables for Theme System */
:root {
	/* Dark Mode (Default) */
	--bg-color: #202020;
	--card-bg: #2b2b2b;
	--text-primary: #e8eaed;
	--text-secondary: #9aa0a6;
	--accent-color: #22c55e;
	--accent-gradient: linear-gradient(135deg, #22c55e, #16a34a);
	--border-color: #3c4043;
	--input-bg: #3c4043;
	--input-border: #5f6368;
	--input-focus-border: #22c55e;
	--btn-bg: #22c55e;
	--btn-hover-bg: #16a34a;
	--btn-text: #ffffff;
	--link-color: #22c55e;
	--link-hover: #16a34a;
	--shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Light Mode */
body.light-mode {
	--bg-color: #f1f5f9;
	--card-bg: #ffffff;
	--text-primary: #1e293b;
	--text-secondary: #475569;
	--accent-color: #22c55e;
	--accent-gradient: linear-gradient(135deg, #22c55e, #16a34a);
	--border-color: #e2e8f0;
	--input-bg: #ffffff;
	--input-border: #d1d5db;
	--input-focus-border: #22c55e;
	--btn-bg: #22c55e;
	--btn-hover-bg: #16a34a;
	--btn-text: #ffffff;
	--link-color: #22c55e;
	--link-hover: #16a34a;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* High Contrast Mode */
body.high-contrast {
	--bg-color: #000000;
	--card-bg: #ffffff;
	--text-primary: #000000;
	--text-secondary: #000000;
	--accent-color: #000000;
	--accent-gradient: #000000;
	--border-color: #000000;
	--input-bg: #ffffff;
	--input-border: #000000;
	--input-focus-border: #000000;
	--btn-bg: #000000;
	--btn-hover-bg: #333333;
	--btn-text: #ffffff;
	--link-color: #000000;
	--link-hover: #333333;
	--shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-primary);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.auth-container {
	background-color: var(--card-bg);
	padding: 2rem 3rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	width: 100%;
	max-width: 400px;
	box-shadow: var(--shadow);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Logo styling */
.auth-logo {
	display: block;
	margin: 0 auto 1.5rem auto;
	width: 80px;
	height: 80px;
	transition: opacity 0.3s ease;
}

h1 {
	text-align: center;
	font-weight: 400;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

/* Modified for Forgot Password */
.form-instructions {
	font-size: 0.9rem;
	color: var(--text-secondary);
	text-align: center;
	margin-top: -1rem;
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

.form-group {
	margin-bottom: 1rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	background-color: var(--input-bg);
	border: 1px solid var(--input-border);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

input:focus {
	outline: none;
	border-color: var(--input-focus-border);
	box-shadow: 0 0 0 3px var(--accent-color)20;
}

.btn {
	width: 100%;
	padding: 0.75rem;
	background: var(--accent-gradient);
	border: none;
	border-radius: 6px;
	color: var(--btn-text);
	font-size: 1rem;
	font-weight: 400;
	cursor: pointer;
	margin-top: 1rem;
	transition: all 0.3s ease;
}

.btn:hover {
	background: var(--btn-hover-bg);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px var(--accent-color)50;
}

.btn-secondary {
	width: 100%;
	padding: 0.5rem;
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 0.9rem;
	cursor: pointer;
	margin-top: 0.5rem;
	transition: all 0.3s ease;
}

.btn-secondary:hover {
	background: var(--btn-hover-bg);
	border-color: var(--accent-color);
}

.auth-link {
	text-align: center;
	margin-top: 1.5rem;
}

.auth-link a {
	color: var(--link-color);
	text-decoration: none;
	transition: color 0.3s ease, text-decoration 0.3s ease;
}

.auth-link a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

/* High contrast mode link styling */
body.high-contrast .auth-link a {
	text-decoration: underline;
	font-weight: 400;
}

/* Modified for Forgot Password */
.auth-sub-link {
	text-align: center;
	margin-top: 0.75rem;
}
.auth-sub-link a {
	color: var(--link-color);
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 0.3s ease, text-decoration 0.3s ease;
}
.auth-sub-link a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

/* High contrast mode sub-link styling */
body.high-contrast .auth-sub-link a {
	text-decoration: underline;
	font-weight: 400;
}


/* Style for messages we will add later with JS */
#message-container {
	margin-bottom: 1rem;
	padding: 1rem;
	border-radius: 6px;
	text-align: center;
	display: none; /* Hidden by default */
}

#message-container.success {
	background-color: rgba(34, 197, 94, 0.1);
	border: 1px solid var(--accent-color);
	color: var(--text-primary);
}

#message-container.error {
	background-color: rgba(239, 68, 68, 0.1);
	border: 1px solid #ef4444;
	color: var(--text-primary);
}

/* Theme selector for auth pages */
.auth-theme-selector {
	position: fixed;
	top: 1rem;
	right: 1rem;
	display: flex;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 2px;
	gap: 2px;
	box-shadow: var(--shadow);
}

.theme-btn {
	padding: 6px 10px;
	border: none;
	border-radius: 6px;
	background-color: transparent;
	color: var(--text-secondary);
	font-size: 0.8rem;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.theme-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
}

.theme-btn.active {
	background: var(--accent-gradient);
	color: var(--btn-text);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}