/**
 * Exam Authentication — front-end styles.
 * Loaded only on pages that render an authentication shortcode.
 */

.ibps-auth-wrap,
.ibps-auth-wrap * {
	box-sizing: border-box;
}

.ibps-auth-wrap {
	--ibps-auth-primary: #0b5fff;
	--ibps-auth-ink: #101828;
	--ibps-auth-button: #0b5fff;
	--ibps-auth-width: 460px;
	--ibps-auth-muted: #667085;
	--ibps-auth-line: #e4e8f0;
	--ibps-auth-soft: #f5f7fb;
	--ibps-auth-radius: 18px;
	width: 100%;
	max-width: calc(var(--ibps-auth-width) + 40px);
	margin: 32px auto;
	padding: 0 4px;
	color: var(--ibps-auth-ink);
	font-family: inherit;
	line-height: 1.55;
}

.ibps-auth-wrap-wide {
	max-width: 980px;
}

.ibps-auth-card {
	position: relative;
	width: 100%;
	background: #ffffff;
	border: 1px solid var(--ibps-auth-line);
	border-radius: var(--ibps-auth-radius);
	box-shadow: 0 24px 60px -30px rgba(16, 24, 40, 0.28), 0 2px 8px rgba(16, 24, 40, 0.04);
	padding: 32px;
	overflow: hidden;
}

.ibps-auth-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, var(--ibps-auth-primary), var(--ibps-auth-button));
}

.ibps-auth-head {
	margin-bottom: 22px;
}

.ibps-auth-head-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.ibps-auth-logo {
	display: block;
	max-height: 54px;
	max-width: 190px;
	width: auto;
	height: auto;
	margin-bottom: 14px;
}

.ibps-auth-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	color: var(--ibps-auth-primary);
	margin-bottom: 8px;
}

.ibps-auth-head h2 {
	margin: 0 0 8px;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	line-height: 1.2;
	font-weight: 700;
	color: var(--ibps-auth-ink);
	letter-spacing: -0.02em;
}

.ibps-auth-sub {
	margin: 0;
	color: var(--ibps-auth-muted);
	font-size: 0.95rem;
}

.ibps-auth-muted {
	color: var(--ibps-auth-muted);
	font-size: 0.92rem;
}

.ibps-auth-form {
	margin: 0;
}

.ibps-auth-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

.ibps-auth-field {
	margin: 0 0 18px;
}

.ibps-auth-field > label,
.ibps-auth-label-row > label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ibps-auth-ink);
}

.ibps-auth-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ibps-auth-field input[type="text"],
.ibps-auth-field input[type="email"],
.ibps-auth-field input[type="password"],
.ibps-auth-field input[type="tel"],
.ibps-auth-field input[type="url"],
.ibps-auth-field select,
.ibps-auth-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	margin: 0;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ibps-auth-ink);
	background: #ffffff;
	border: 1px solid var(--ibps-auth-line);
	border-radius: 11px;
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ibps-auth-field input:focus,
.ibps-auth-field select:focus,
.ibps-auth-field textarea:focus {
	outline: none;
	border-color: var(--ibps-auth-primary);
	box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}

.ibps-auth-field input[readonly],
.ibps-auth-field input:disabled {
	background: var(--ibps-auth-soft);
	color: var(--ibps-auth-muted);
	cursor: not-allowed;
}

.ibps-auth-help {
	display: block;
	margin-top: 6px;
	font-size: 0.78rem;
	color: var(--ibps-auth-muted);
}

.ibps-auth-password {
	position: relative;
	display: flex;
	align-items: center;
}

.ibps-auth-password input {
	padding-right: 72px !important;
}

.ibps-auth-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 10px;
	margin: 0;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ibps-auth-primary);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.ibps-auth-toggle-hide {
	display: none;
}

.ibps-auth-toggle.is-visible .ibps-auth-toggle-show {
	display: none;
}

.ibps-auth-toggle.is-visible .ibps-auth-toggle-hide {
	display: inline;
}

.ibps-auth-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 2px 0 20px;
	font-size: 0.88rem;
	color: var(--ibps-auth-muted);
	cursor: pointer;
}

.ibps-auth-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ibps-auth-primary);
}

.ibps-auth-check span {
	line-height: 1.5;
}

.ibps-auth-button,
.ibps-auth-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 22px;
	font-size: 0.95rem;
	font-weight: 650;
	font-family: inherit;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border-radius: 11px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.ibps-auth-form .ibps-auth-button {
	width: 100%;
	margin: 2px 0 0;
}

.ibps-auth-button {
	color: #ffffff;
	background: var(--ibps-auth-button);
	border-color: var(--ibps-auth-button);
	box-shadow: 0 12px 24px -14px rgba(11, 95, 255, 0.7);
}

.ibps-auth-button:hover,
.ibps-auth-button:focus {
	color: #ffffff;
	background: var(--ibps-auth-button);
	filter: brightness(0.94);
	text-decoration: none;
}

.ibps-auth-button:active {
	transform: translateY(1px);
}

.ibps-auth-button:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ibps-auth-secondary {
	color: var(--ibps-auth-ink);
	background: var(--ibps-auth-soft);
	border-color: var(--ibps-auth-line);
}

.ibps-auth-secondary:hover {
	background: #eef1f7;
	color: var(--ibps-auth-ink);
	text-decoration: none;
}

.ibps-auth-link {
	color: var(--ibps-auth-primary);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.ibps-auth-link:hover {
	text-decoration: underline;
}

.ibps-auth-foot {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--ibps-auth-line);
	text-align: center;
	font-size: 0.88rem;
	color: var(--ibps-auth-muted);
}

.ibps-auth-foot p {
	margin: 0;
}

.ibps-auth-foot a {
	color: var(--ibps-auth-primary);
	font-weight: 600;
	text-decoration: none;
}

.ibps-auth-foot a:hover {
	text-decoration: underline;
}

.ibps-auth-alert {
	display: block;
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 11px;
	font-size: 0.88rem;
	line-height: 1.55;
	border: 1px solid transparent;
}

.ibps-auth-alert[hidden] {
	display: none;
}

.ibps-auth-alert.is-success {
	color: #05603a;
	background: #ecfdf3;
	border-color: #abefc6;
}

.ibps-auth-alert.is-error {
	color: #b42318;
	background: #fef3f2;
	border-color: #fecdca;
}

.ibps-auth-alert.is-info {
	color: #175cd3;
	background: #eff8ff;
	border-color: #b2ddff;
}

.ibps-auth-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.ibps-auth-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}

.ibps-auth-actions-row {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin: 0 0 26px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ibps-auth-line);
}

.ibps-auth-actions-row .ibps-auth-button {
	width: auto;
}

.ibps-auth-center {
	text-align: center;
}

.ibps-auth-center .ibps-auth-head {
	margin-bottom: 18px;
}

.ibps-auth-center .ibps-auth-actions {
	margin: 20px 0 4px;
}

.ibps-auth-center .ibps-auth-actions .ibps-auth-button {
	width: 100%;
	max-width: 320px;
}

.ibps-auth-resend {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--ibps-auth-line);
	text-align: left;
}

.ibps-auth-resend .ibps-auth-button {
	width: 100%;
}

.ibps-auth-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px;
}

.ibps-auth-stat {
	padding: 16px;
	background: var(--ibps-auth-soft);
	border: 1px solid var(--ibps-auth-line);
	border-radius: 13px;
}

.ibps-auth-stat-label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ibps-auth-muted);
}

.ibps-auth-stat-value {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ibps-auth-ink);
}

.ibps-auth-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 0.76rem;
	font-weight: 700;
	border-radius: 999px;
}

.ibps-auth-badge.is-active {
	color: #05603a;
	background: #d1fadf;
}

.ibps-auth-badge.is-pending {
	color: #b54708;
	background: #fef0c7;
}

.ibps-auth-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.ibps-auth-panel {
	padding: 22px;
	background: #fcfdff;
	border: 1px solid var(--ibps-auth-line);
	border-radius: 15px;
}

.ibps-auth-panel h3 {
	margin: 0 0 18px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ibps-auth-ink);
}

.ibps-auth-captcha {
	margin: 0 0 18px;
	min-height: 4px;
}

.ibps-auth-resend-block {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed var(--ibps-auth-line);
}

.ibps-auth-resend-block summary {
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ibps-auth-primary);
	list-style: none;
}

.ibps-auth-resend-block summary::-webkit-details-marker {
	display: none;
}

.ibps-auth-resend-block summary::after {
	content: " +";
	font-weight: 700;
}

.ibps-auth-resend-block[open] summary::after {
	content: " −";
}

.ibps-auth-resend-block .ibps-auth-form {
	margin-top: 14px;
}

.ibps-auth-resend-block .ibps-auth-muted {
	margin: 8px 0 14px;
}

.ibps-auth-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ibps-auth-spin 0.7s linear infinite;
}

.ibps-auth-form.is-loading .ibps-auth-spinner {
	display: inline-block;
}

.ibps-auth-form.is-loading .ibps-auth-button {
	opacity: 0.82;
	cursor: wait;
}

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

@media (max-width: 720px) {
	.ibps-auth-wrap {
		margin: 18px auto;
	}

	.ibps-auth-card {
		padding: 24px 20px;
		border-radius: 15px;
	}

	.ibps-auth-grid,
	.ibps-auth-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.ibps-auth-stats {
		grid-template-columns: minmax(0, 1fr);
	}

	.ibps-auth-head-row {
		flex-direction: column;
	}

	.ibps-auth-field input,
	.ibps-auth-field select,
	.ibps-auth-field textarea {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ibps-auth-wrap *,
	.ibps-auth-wrap *::before,
	.ibps-auth-wrap *::after {
		transition: none !important;
		animation: none !important;
	}
}
