/**
 * Auth Styles
 *
 * Styles for login, forgot password, and reset password pages.
 *
 * @package EM_Epic_HQ
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	--em-hq-primary: #1a1a1a;
	--em-hq-accent: #73CDD6;
	--em-hq-accent-dark: #5BB8C1;
	--em-hq-success: #22c55e;
	--em-hq-warning: #eab308;
	--em-hq-error: #ef4444;
	--em-hq-info: #3b82f6;
	--em-hq-text: #1a1a1a;
	--em-hq-text-muted: #6b7280;
	--em-hq-border: #e5e7eb;
	--em-hq-bg: #f9fafb;
	--em-hq-bg-white: #ffffff;
	--em-hq-radius: 6px;
	--em-hq-radius-lg: 12px;
	--em-hq-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--em-hq-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--em-hq-transition: 150ms ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

.em-hq-auth {
	min-height: 100vh;
	background: linear-gradient(135deg, var(--em-hq-primary) 0%, #2d2d2d 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.em-hq-auth *,
.em-hq-auth *::before,
.em-hq-auth *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Auth Container
   ========================================================================== */

.em-auth-container {
	width: 100%;
	max-width: 420px;
}

.em-auth-box {
	background: var(--em-hq-bg-white);
	border-radius: var(--em-hq-radius-lg);
	box-shadow: var(--em-hq-shadow-lg);
	padding: 2rem;
}

@media (min-width: 640px) {
	.em-auth-box {
		padding: 2.5rem;
	}
}

/* ==========================================================================
   Auth Header
   ========================================================================== */

.em-auth-header {
	text-align: center;
	margin-bottom: 2rem;
}

.em-auth-logo-link {
	display: inline-block;
	margin-bottom: 1rem;
}

.em-auth-logo {
	max-height: 60px;
	width: auto;
}

.em-auth-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--em-hq-text);
	margin: 0 0 0.5rem;
}

.em-auth-tagline {
	font-size: 0.875rem;
	color: var(--em-hq-text-muted);
	margin: 0;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.em-auth-message {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: var(--em-hq-radius);
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.em-auth-message p {
	margin: 0;
}

.em-auth-message__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.em-auth-message--error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.em-auth-message--success {
	background-color: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.em-auth-message--warning {
	background-color: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.em-auth-message--info {
	background-color: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.em-auth-form {
	margin-bottom: 1.5rem;
}

.em-form-field {
	margin-bottom: 1.25rem;
}

.em-form-field:last-of-type {
	margin-bottom: 1.5rem;
}

.em-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--em-hq-text);
	margin-bottom: 0.5rem;
}

.em-form-input {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--em-hq-text);
	background-color: var(--em-hq-bg-white);
	border: 1px solid var(--em-hq-border);
	border-radius: var(--em-hq-radius);
	transition: border-color var(--em-hq-transition), box-shadow var(--em-hq-transition);
}

.em-form-input:focus {
	outline: none;
	border-color: var(--em-hq-accent);
	box-shadow: 0 0 0 3px rgba(115, 205, 214, 0.25);
}

.em-form-input::placeholder {
	color: var(--em-hq-text-muted);
}

.em-form-help {
	font-size: 0.75rem;
	color: var(--em-hq-text-muted);
	margin: 0.5rem 0 0;
}

/* Checkbox field */
.em-form-field--checkbox {
	margin-bottom: 1.5rem;
}

.em-form-checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--em-hq-text);
	cursor: pointer;
}

.em-form-checkbox {
	width: 1rem;
	height: 1rem;
	accent-color: var(--em-hq-accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.em-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	border-radius: var(--em-hq-radius);
	border: none;
	cursor: pointer;
	transition: background-color var(--em-hq-transition), transform var(--em-hq-transition);
}

.em-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(115, 205, 214, 0.5);
}

.em-btn:active {
	transform: translateY(1px);
}

.em-btn--primary {
	background-color: var(--em-hq-primary);
	color: white;
}

.em-btn--primary:hover {
	background-color: #2d2d2d;
}

.em-btn--full {
	width: 100%;
}

/* ==========================================================================
   Auth Links
   ========================================================================== */

.em-auth-links {
	text-align: center;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.em-auth-links a {
	color: var(--em-hq-accent-dark);
	text-decoration: none;
	transition: color var(--em-hq-transition);
}

.em-auth-links a:hover {
	color: var(--em-hq-primary);
	text-decoration: underline;
}

.em-auth-separator {
	margin: 0 0.75rem;
	color: var(--em-hq-text-muted);
}

/* ==========================================================================
   Auth Footer
   ========================================================================== */

.em-auth-footer {
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid var(--em-hq-border);
}

.em-auth-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--em-hq-text-muted);
	text-decoration: none;
	transition: color var(--em-hq-transition);
}

.em-auth-back-link:hover {
	color: var(--em-hq-text);
}

.em-auth-back-link svg {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   Auth Actions (Access Denied)
   ========================================================================== */

.em-auth-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.em-auth-actions .em-btn {
	width: 100%;
}
