/**
 * Alumni Login Page Styles
 */

/* Theme Container Overrides */
/* Override Astra theme and other theme containers */
body:has(.coenect-login-wrapper) .ast-container,
body:has(.coenect-login-wrapper) .container,
body:has(.coenect-login-wrapper) .site-content,
body:has(.coenect-login-wrapper) .entry-content {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

/* Remove theme padding/margin from parent containers */
.coenect-login-wrapper:is(.ast-container *, .container *, .site-content *, .entry-content *) {
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	width: 100vw !important;
	max-width: 100vw !important;
}

/* Reset and Base */
.coenect-login-wrapper * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.coenect-login-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: var(--alumnus-bg-page);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Home Button */
.coenect-login-home-btn {
	position: absolute;
	top: 40px;
	left: 40px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(90deg, var(--alumnus-brown) 0%, var(--alumnus-beige) 50%, var(--alumnus-beige) 100%);
	border: none;
	padding: 12px 24px 12px 12px;
	border-radius: 50px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 10;
}

.coenect-login-home-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px var(--alumnus-shadow-xl);
}

.coenect-login-home-icon {
	width: 40px;
	height: 40px;
	background: var(--alumnus-brown);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--alumnus-gold-bright);
	font-size: 20px;
}

.coenect-login-home-text {
	color: var(--alumnus-brown);
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Main Container */
.coenect-login-container {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* Split Layout */
.coenect-login-split {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1200px;
	width: 100%;
	gap: 80px;
	box-sizing: border-box;
}

/* Left Side - Logo */
.coenect-login-left {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	width: 100%;
	box-sizing: border-box;
}

.coenect-logo-text {
	font-size: 48px;
	font-weight: 700;
	color: var(--alumnus-primary);
	text-align: center;
	line-height: 1.2;
	word-break: break-word;
}

/* Vertical Divider */
.coenect-login-divider {
	width: 4px;
	height: 400px;
	background: linear-gradient(180deg, transparent 0%, var(--alumnus-gold-bright) 20%, var(--alumnus-gold-bright) 80%, transparent 100%);
	border-radius: 2px;
}

/* Right Side - Form */
.coenect-login-right {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	width: 100%;
	box-sizing: border-box;
}

.coenect-login-form {
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
}

/* Form Inputs */
.coenect-form-input {
	width: 100%;
	padding: 18px 24px;
	border: none;
	border-radius: 50px;
	background: var(--alumnus-bg-input);
	color: var(--alumnus-text-muted);
	font-size: 16px;
	font-weight: 400;
	outline: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.coenect-form-input::placeholder {
	color: var(--alumnus-text-placeholder);
	font-weight: 300;
}

.coenect-form-input:focus {
	background: var(--alumnus-bg-input-focus);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

/* Form Options Row */
.coenect-form-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px;
}

/* Remember Me */
.coenect-remember-me {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.coenect-remember-checkbox {
	width: 24px;
	height: 24px;
	border: 2px solid var(--alumnus-primary);
	border-radius: 4px;
	background: var(--alumnus-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.coenect-remember-checkbox.checked::after {
	content: '✓';
	color: white;
	font-size: 16px;
	font-weight: bold;
}

.coenect-remember-label {
	color: var(--alumnus-text-body);
	font-size: 15px;
	font-weight: 500;
	user-select: none;
}

/* Forgot Password Link */
.coenect-forgot-link {
	color: var(--alumnus-primary);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.coenect-forgot-link:hover {
	color: var(--alumnus-primary-hover);
}

/* Login Button */
.coenect-login-btn {
	width: 100%;
	padding: 18px 24px;
	border: none;
	border-radius: 50px;
	background: var(--alumnus-primary);
	color: var(--alumnus-gold-bright);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px var(--alumnus-shadow-button-login);
	margin-top: 10px;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.coenect-login-btn:hover {
	background: var(--alumnus-primary-hover);
	color: var(--alumnus-gold-bright);
	text-decoration: underline;
	text-decoration-color: var(--alumnus-gold-bright);
	text-underline-offset: 3px;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px var(--alumnus-shadow-button-login-hover);
}

.coenect-login-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px var(--alumnus-shadow-button-login);
}

/* Error Messages */
.coenect-error-message {
	background: var(--alumnus-error-bg);
	border: 1px solid var(--alumnus-error-border);
	color: var(--alumnus-error-text);
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

/* Password Reset Modal */
.coenect-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--alumnus-overlay-dark);
	backdrop-filter: blur(4px);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.coenect-modal-overlay.active {
	display: flex;
}

.coenect-modal {
	background: white;
	width: 90%;
	max-width: 400px;
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.coenect-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: none;
	background: var(--alumnus-modal-border);
	color: var(--alumnus-icon-muted);
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.coenect-modal-close:hover {
	background: var(--alumnus-modal-border-dark);
	color: var(--alumnus-icon-muted-hover);
}

.coenect-modal h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--alumnus-text-heading);
	margin-bottom: 24px;
	text-align: center;
}

.coenect-modal-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.coenect-modal-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--alumnus-text-secondary);
	margin-bottom: 4px;
}

/* Responsive Design */

/* Tablets and below (portrait) */
@media (max-width: 968px) {
	.coenect-login-container {
		padding: 30px 20px;
	}

	.coenect-login-split {
		flex-direction: column;
		gap: 40px;
	}

	.coenect-login-divider {
		width: 80%;
		max-width: 300px;
		height: 4px;
		background: linear-gradient(90deg, transparent 0%, var(--alumnus-gold-bright) 20%, var(--alumnus-gold-bright) 80%, transparent 100%);
	}

	.coenect-logo-text {
		font-size: 40px;
	}

	.coenect-login-left,
	.coenect-login-right {
		padding: 20px;
	}

	.coenect-login-form {
		max-width: 100%;
	}
}

/* Small tablets and large phones */
@media (max-width: 768px) {
	.coenect-login-home-btn {
		top: 20px;
		left: 20px;
		padding: 10px 20px 10px 10px;
	}

	.coenect-login-home-icon {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.coenect-login-home-text {
		font-size: 14px;
	}

	.coenect-logo-text {
		font-size: 36px;
	}

	.coenect-login-divider {
		width: 70%;
		max-width: 250px;
	}

	.coenect-form-options {
		flex-wrap: wrap;
		gap: 12px;
	}
}

/* Mobile phones */
@media (max-width: 480px) {
	.coenect-login-wrapper {
		min-height: 100vh;
	}

	.coenect-login-container {
		padding: 20px 16px;
	}

	.coenect-login-split {
		gap: 30px;
	}

	.coenect-login-home-btn {
		top: 16px;
		left: 16px;
		padding: 8px 16px 8px 8px;
	}

	.coenect-login-home-icon {
		width: 32px;
		height: 32px;
		font-size: 16px;
	}

	.coenect-login-home-text {
		font-size: 13px;
	}

	.coenect-login-left,
	.coenect-login-right {
		padding: 10px;
	}

	.coenect-logo-text {
		font-size: 32px;
	}

	.coenect-login-divider {
		width: 60%;
		max-width: 200px;
		height: 3px;
	}

	.coenect-login-form {
		gap: 16px;
	}

	.coenect-form-input {
		padding: 16px 20px;
		font-size: 15px;
	}

	.coenect-form-options {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 0;
	}

	.coenect-remember-me {
		width: 100%;
	}

	.coenect-forgot-link {
		font-size: 14px;
	}

	.coenect-login-btn {
		padding: 16px 20px;
		font-size: 16px;
	}

	.coenect-modal {
		padding: 30px 20px;
		width: 95%;
		max-width: 350px;
	}

	.coenect-modal h3 {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.coenect-error-message {
		font-size: 13px;
		padding: 10px 16px;
	}
}

/* Extra small devices */
@media (max-width: 360px) {
	.coenect-logo-text {
		font-size: 28px;
	}

	.coenect-login-home-text {
		font-size: 12px;
	}

	.coenect-form-input {
		padding: 14px 18px;
		font-size: 14px;
	}

	.coenect-login-btn {
		padding: 14px 18px;
		font-size: 15px;
	}

	.coenect-modal {
		padding: 24px 16px;
		width: 95%;
	}
}

