/**
 * OCIA Frontend Auth — login, forgot, reset pages.
 */
html,body{margin:0px;padding:0px;}
.ocia-auth-wrap {
	--ocia-green: #4a7c3f;
	--ocia-charcoal: #2c2c2c;
	--ocia-charcoal-hover: #1a1a1a;
	--ocia-border: #d9d9d9;
	--ocia-text: #222222;
	--ocia-text-muted: #555555;
	--ocia-text-light: #aaaaaa;
	--ocia-white: #ffffff;
	--ocia-error: #c0392b;
	--ocia-success: #2d7a3d;
	--ocia-radius: 8px;
	--ocia-input-radius: 8px;
	--ocia-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	box-sizing: border-box;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	font-family: var(--ocia-font);
	color: var(--ocia-text);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	position: relative;
}

.ocia-auth-wrap[style*="--ocia-auth-bg"] {
	background-image: var(--ocia-auth-bg);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}


.ocia-auth-wrap *,
.ocia-auth-wrap *::before,
.ocia-auth-wrap *::after {
	box-sizing: border-box;
}

.ocia-auth-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Logo above card */
.ocia-auth-branding {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.ocia-auth-branding__logo {
	display: block;
	width: auto;
	height: 74px;
	max-width: 240px;
}

/* Login card */
.ocia-auth-card {
	width: 100%;
	background: var(--ocia-white);
	border-radius: var(--ocia-radius);
	box-shadow: 0px 0px 10px 0px #0000001A;
	padding: 24px;
}

.ocia-auth-card__title {
	margin: 0 0 26px;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
	color: #000000;
	text-transform: uppercase;
}

.ocia-auth-card__subtitle {
	margin: -18px 0 22px;
	font-size: 0.8125rem;
	color: var(--ocia-text-muted);
	text-align: center;
	line-height: 1.55;
}

/* Messages */
.ocia-auth-messages {
	margin-bottom: 10px;
}

.ocia-auth-message,
.ocia-auth-form-messages .ocia-auth-message {
	padding: 6px 8px;
	border-radius: var(--ocia-input-radius);
	font-size: 0.8125rem;
	line-height: 1.45;
	margin-bottom: 10px;
}

.ocia-auth-message:last-child,
.ocia-auth-form-messages .ocia-auth-message:last-child {
	margin-bottom: 0;
}

.ocia-auth-message--error,
.ocia-auth-form-messages .ocia-auth-message--error {
	background: #fdecea;
	color: var(--ocia-error);
	border: 1px solid #f5c6cb;
	margin-bottom: 10px!important;
}

.ocia-auth-message--success,
.ocia-auth-form-messages .ocia-auth-message--success {
	background: #e8f5e9;
	color: var(--ocia-success);
	border: 1px solid #c8e6c9;
	margin-bottom: 10px!important;
}

.ocia-auth-message--info {
	background: #e3f2fd;
	color: #1565c0;
	border: 1px solid #bbdefb;
}

.ocia-auth-form-messages:empty {
	display: none;
}

/* Form */
.ocia-auth-form {
	display: flex;
	flex-direction: column;
}

.ocia-auth-field {
	margin-bottom: 24px;
}

.ocia-auth-field:last-of-type {
	margin-bottom: 0;
}

.ocia-auth-label {
	display: block;
	margin-bottom: 6px;
	font-size: 1rem;
	font-weight: 400;
	color: #1E1E1E;
}

.ocia-auth-input {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--ocia-text);
	background: var(--ocia-white);
	border: 1px solid var(--ocia-border);
	border-radius: var(--ocia-input-radius);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ocia-auth-input::placeholder {
	color: var(--ocia-text-light);
}

.ocia-auth-input:hover {
	border-color: #cccccc;
}

.ocia-auth-input:focus {
	outline: none;
	border-color: #999999;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.ocia-auth-input.ocia-auth-input--error {
	border-color: var(--ocia-error);
}

.ocia-auth-password-wrap {
	position: relative;
}

.ocia-auth-password-wrap .ocia-auth-input--password {
	padding-right: 44px;
}

.ocia-auth-password-toggle {
	position: absolute;
	top: 50%;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	color: #888888;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.15s ease, background 0.15s ease;
}

.ocia-auth-password-toggle:hover {
	color: #555555;
	background: rgba(0, 0, 0, 0.04);
}

.ocia-auth-password-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.ocia-auth-password-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.ocia-auth-password-toggle__icon[hidden] {
	display: none;
}

.ocia-auth-password-toggle.is-visible .ocia-auth-password-toggle__icon--show {
	display: none;
}

.ocia-auth-password-toggle.is-visible .ocia-auth-password-toggle__icon--hide {
	display: inline-flex;
}

.ocia-auth-hint {
	margin: 6px 0 0;
	font-size: 0.75rem;
	color: var(--ocia-text-muted);
	line-height: 1.4;
}

/* Sign In button */
.ocia-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	padding: 0 20px;
	margin-top: 24px;
	font-size:1rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--ocia-white);
	background: var(--ocia-charcoal);
	border: none;
	border-radius: var(--ocia-input-radius);
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	position: relative;
	text-decoration: none;
}

.ocia-auth-button:hover {
	background: var(--ocia-charcoal-hover);
	color: var(--ocia-white);
}

.ocia-auth-button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.2);
}

.ocia-auth-button:disabled,
.ocia-auth-button.is-loading {
	opacity: 0.75;
	cursor: not-allowed;
}

.ocia-auth-button__loader {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ocia-spin 0.7s linear infinite;
	margin-left: 8px;
}

.ocia-auth-button.is-loading .ocia-auth-button__loader {
	display: inline-block;
}

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

/* Forgot password link */
.ocia-auth-footer-link {
	margin: 24px 0 0;
	text-align: left;
}

.ocia-auth-footer-link--center {
	text-align: center;
}

.ocia-auth-footer-link a {
	font-size: 1rem;
	color: #1E1E1E;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ocia-auth-footer-link a:hover {
	color: #000000;
}

/* Theme overrides */
body.ocia-auth-page:not(.ocia-dashboard-page) .ocia-auth-wrap {
	margin: 0 auto;
}

body.ocia-auth-page:not(.ocia-dashboard-page) .entry-content,
body.ocia-auth-page:not(.ocia-dashboard-page) .site-content .content-area {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

body.ocia-auth-page:not(.ocia-dashboard-page) .entry-header {
	display: none;
}

@media (max-width: 480px) {
	.ocia-auth-card {
		padding: 28px 24px 22px;
	}

	.ocia-auth-branding__logo {
		height: 48px;
	}
}
