/* ==========================================================================
   Hike Auth Pages — Login & Register
   Design: Clean minimal card UI with purple accent (matching attached designs)
   ========================================================================== */

:root {
	--auth-purple: #7c3aed;
	--auth-purple-hover: #6d28d9;
	--auth-purple-light: rgba(124, 58, 237, 0.08);
	--auth-bg: #f9fafb;
	--auth-card-bg: #ffffff;
	--auth-border: #e5e7eb;
	--auth-text: #111827;
	--auth-text-muted: #6b7280;
	--auth-input-bg: #f9fafb;
	--auth-radius: 12px;
	--auth-radius-lg: 16px;
	--auth-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--auth-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Page wrapper — full viewport centering */
.hike-auth-page {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 20px;
}

/* Hide default theme containers & paddings on auth pages */
.page-template-default .site-content,
.page-template-default .entry-content,
.site-content:has(.hike-auth-page),
.entry-content:has(.hike-auth-page),
.page-area:has(.hike-auth-page),
#main-content:has(.hike-auth-page),
article:has(.hike-auth-page),
.edublink-section-gap:has(.hike-auth-page),
.edublink-main-content-inner:has(.hike-auth-page),
.edublink-ll-course-wrapper:has(.hike-auth-page) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	max-width: 100% !important;
}

.hike-auth-wrapper {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}

/* ==========================================================================
   Decorative Icons
   ========================================================================== */

/* Login icon — cloud/bubbles with login arrow */
.hike-auth-icon {
	position: relative;
	margin: 0 auto 28px;
	width: 100px;
	height: 90px;
}

.hike-auth-icon__bubbles {
	position: relative;
	width: 100%;
	height: 100%;
}

.hike-auth-icon__bubbles .bubble {
	position: absolute;
	border-radius: 50%;
	background: #f3f4f6;
}

.bubble--lg {
	width: 60px;
	height: 60px;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
}

.bubble--md {
	width: 40px;
	height: 40px;
	top: 0;
	right: 10px;
}

.bubble--sm {
	width: 16px;
	height: 16px;
	top: 15px;
	left: 12px;
	background: #e5e7eb;
}

.bubble--xs {
	width: 8px;
	height: 8px;
	bottom: 25px;
	left: 20px;
	background: #e5e7eb;
}

.hike-auth-icon__circle {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Register icon — small purple dot */
.hike-auth-icon--register {
	width: 48px;
	height: 48px;
	margin-bottom: 24px;
}

.hike-auth-icon__dot {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--auth-purple), #a78bfa);
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.hike-auth-title {
	font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: var(--auth-text);
	margin: 0 0 8px;
	letter-spacing: -0.3px;
}

.hike-auth-subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: var(--auth-text-muted);
	margin: 0 0 32px;
}

/* ==========================================================================
   Card container (register page)
   ========================================================================== */

.hike-auth-card {
	background: var(--auth-card-bg);
	border: 1px solid var(--auth-border);
	border-radius: var(--auth-radius-lg);
	padding: 32px;
	box-shadow: var(--auth-shadow);
	text-align: left;
	margin-top: 24px;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.hike-auth-form {
	text-align: left;
}

.hike-form-group {
	margin-bottom: 20px;
}

.hike-form-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--auth-text);
	margin-bottom: 6px;
}

.hike-form-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--auth-border);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: var(--auth-text);
	background: var(--auth-card-bg);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.hike-form-input::placeholder {
	color: #9ca3af;
}

.hike-form-input:focus {
	border-color: var(--auth-purple);
	box-shadow: 0 0 0 3px var(--auth-purple-light);
}

/* Password wrapper with toggle */
.hike-input-password-wrap {
	position: relative;
}

.hike-input-password-wrap .hike-form-input {
	padding-right: 44px;
}

.hike-toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.hike-toggle-password:hover {
	color: var(--auth-text);
}

/* Hint text */
.hike-form-hint {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: var(--auth-text-muted);
}

.hike-form-hint svg {
	color: #9ca3af;
	flex-shrink: 0;
}

/* Row with space-between items */
.hike-form-row {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
}

.hike-form-row--between {
	justify-content: space-between;
}

/* Checkbox */
.hike-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: var(--auth-text);
	cursor: pointer;
}

.hike-checkbox {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	accent-color: var(--auth-purple);
}

/* Link */
.hike-form-link {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--auth-purple) !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
}

.hike-form-link:hover {
	opacity: 0.8;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hike-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 24px;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	box-sizing: border-box;
}

.hike-btn--primary {
	background: var(--auth-purple);
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.hike-btn--primary:hover {
	background: var(--auth-purple-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.hike-btn--google {
	background: var(--auth-card-bg);
	color: var(--auth-text) !important;
	border: 1px solid var(--auth-border);
	box-shadow: none;
}

.hike-btn--google:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.hike-auth-divider {
	display: flex;
	align-items: center;
	margin: 20px 0;
	gap: 12px;
}

.hike-auth-divider::before,
.hike-auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--auth-border);
}

.hike-auth-divider span {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: var(--auth-text-muted);
}

/* ==========================================================================
   Switch Link (bottom)
   ========================================================================== */

.hike-auth-switch {
	margin-top: 28px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: var(--auth-text-muted);
}

.hike-auth-switch a {
	color: var(--auth-purple) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.hike-auth-switch a:hover {
	text-decoration: underline !important;
}

/* ==========================================================================
   Notice boxes
   ========================================================================== */

.hike-auth-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 24px;
	text-align: left;
}

.hike-auth-notice svg {
	flex-shrink: 0;
	margin-top: 1px;
}

.hike-auth-notice--warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.hike-auth-notice--warning svg {
	color: #d97706;
}

.hike-auth-notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.hike-auth-notice--success svg {
	color: #16a34a;
}

/* ==========================================================================
   Override default plugin/theme styles on auth pages
   ========================================================================== */

/* Hide breadcrumbs and page title from theme */
.hike-auth-page ~ .breadcrumb,
body.page .hike-auth-page .entry-title {
	display: none !important;
}

/* Override any LearnPress or Events Manager default form styles */
.hike-auth-page .event-auth-form {
	background: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	border: none !important;
	border-radius: 0 !important;
	max-width: none !important;
}

.hike-auth-page .event-auth-form p.form-row {
	margin: 0 !important;
	padding: 0 !important;
}

/* Hide plugin default notices - we use our own */
.hike-auth-page .wpems-message,
.hike-auth-page .event-notices {
	background: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	color: #dc2626 !important;
	font-size: 14px !important;
	margin-bottom: 20px !important;
	text-align: left;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 480px) {
	.hike-auth-page {
		padding: 20px 16px;
	}

	.hike-auth-title {
		font-size: 24px;
	}

	.hike-auth-card {
		padding: 24px 20px;
	}

	.hike-btn {
		padding: 12px 20px;
		font-size: 15px;
	}
}

/* Force larger font size for all inputs in auth pages */
.hike-auth-page input[type="text"],
.hike-auth-page input[type="email"],
.hike-auth-page input[type="password"] {
    font-size: 16px !important;
    padding: 12px 14px !important;
}

