/* Soroti University REMIS — shared Login & OTP verification styling */

:root {
	--su-navy: #025B80;
	--su-navy-deep: #013A52;
	--su-navy-mid: #01486a;
	--su-gold: #D4A017;
	--su-gold-light: #F0D060;
	--su-gold-glow: rgba(212, 160, 23, 0.45);
	--su-blue-glow: rgba(2, 91, 128, 0.35);
}

/* ── Card ─────────────────────────────────────────────────────────── */
.portal-auth-card,
.wrap-login100.portal-auth-card {
	padding: 32px 36px 22px !important;
	border-radius: 10px !important;
}

.portal-auth-inner {
	max-width: 400px;
	margin: 0 auto;
	text-align: center;
}

/* ── Brand header ───────────────────────────────────────────────── */
.portal-brand-mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.portal-brand-img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	background: transparent;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.portal-brand-name {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 3px;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
	text-transform: uppercase;
}

.portal-subtitle {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	margin: 4px 0 0;
}

.portal-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	margin: 18px 0 22px;
	border: none;
}

.portal-heading {
	font-family: "Roboto", "Segoe UI", sans-serif;
	font-size: 21px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 18px;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.portal-hint {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.88);
	margin: -8px 0 18px;
	line-height: 1.55;
}

/* ── Fields & inputs ────────────────────────────────────────────── */
.portal-fields {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.portal-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}

.portal-input-wrap {
	position: relative;
}

.portal-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #7a8a96;
	font-size: 15px;
	line-height: 1;
	pointer-events: none;
	z-index: 2;
	transition: color 0.15s ease;
}

.portal-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 40px;
	padding: 0 12px 0 38px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	background: #ffffff;
	color: var(--su-navy);
	font-family: "Roboto", "Segoe UI", sans-serif;
	font-size: 14px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-input--center {
	text-align: center;
	padding-left: 42px;
	padding-right: 14px;
	font-family: Consolas, "Roboto Mono", monospace;
	font-size: 24px;
	letter-spacing: 8px;
}

.portal-input-wrap--otp {
	max-width: 280px;
	margin: 0 auto;
}

.portal-input-wrap--otp .portal-input-icon {
	left: 14px;
	transform: translateY(-50%);
}

.portal-input-wrap:focus-within .portal-input-icon {
	color: var(--su-navy);
}

.portal-input:focus {
	outline: none;
	border-color: var(--su-gold);
	box-shadow: 0 0 0 3px var(--su-gold-glow), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.portal-input-wrap--password .portal-input {
	padding-right: 42px;
}

.portal-toggle-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #7a8a96;
	cursor: pointer;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
}

.portal-toggle-btn:hover,
.portal-toggle-btn:focus {
	color: var(--su-navy);
	outline: none;
}

/* ── Primary button (navy gradient) ─────────────────────────────── */
.portal-submit-wrap {
	margin-top: 20px;
	width: 100%;
}

.portal-submit-wrap .portal-btn,
.portal-submit-wrap input[type="submit"],
.portal-actions .portal-btn-primary {
	width: 100%;
	min-width: 0;
	height: 44px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	font-family: "Roboto", "Segoe UI", sans-serif;
	letter-spacing: 0.04em;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: var(--su-blue-medium, #037FB2) !important;
	color: #ffffff !important;
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.portal-submit-wrap .portal-btn:hover,
.portal-actions .portal-btn-primary:hover {
	background: var(--su-blue-dark, #025B80) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

.portal-submit-wrap .portal-btn:active,
.portal-actions .portal-btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ── Secondary / outline button ─────────────────────────────────── */
.portal-btn-secondary {
	display: block;
	width: 100%;
	min-width: 0;
	height: 44px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	font-family: "Roboto", "Segoe UI", sans-serif;
	cursor: pointer;
	background: transparent !important;
	color: #ffffff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
	box-shadow: none;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.portal-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.85) !important;
}

.portal-btn-secondary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ── Messages ───────────────────────────────────────────────────── */
.portal-error {
	color: #ffe8e8;
	background: rgba(120, 20, 20, 0.35);
	border: 1px solid rgba(255, 180, 180, 0.45);
	border-radius: 0;
	display: block;
	text-align: center;
	margin: 14px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
}

.portal-timer {
	font-size: 14px;
	color: #d8eefb;
	margin: 14px 0 4px;
	font-weight: 600;
}

.portal-timer.expired {
	color: #ffd4d4;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.portal-footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.portal-admission-btn {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 0;
	border: 2px solid var(--su-gold-light);
	background: linear-gradient(180deg, var(--su-gold-light) 0%, var(--su-gold) 100%);
	color: var(--su-navy-deep) !important;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.portal-admission-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
	filter: brightness(1.05);
	color: var(--su-navy-deep) !important;
	text-decoration: none !important;
}

.portal-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 6px;
	font-size: 13px;
}

.portal-footer-links a,
.portal-footer-links button {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-weight: 400;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	padding: 4px 6px;
}

.portal-footer-links a:hover,
.portal-footer-links button:hover {
	color: #fff;
	text-decoration: underline;
}

.portal-footer-links .sep {
	color: rgba(255, 255, 255, 0.3);
	user-select: none;
	font-weight: 300;
}

.portal-back {
	margin-top: 18px;
	font-size: 13px;
}

.portal-back a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-weight: 400;
}

.portal-back a:hover {
	color: #fff;
	text-decoration: underline;
}

.portal-actions {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	width: 100%;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 480px) {
	.portal-auth-card {
		padding: 28px 22px 18px !important;
	}
	.portal-brand-img {
		width: 72px;
		height: 72px;
	}
	.portal-brand-name {
		font-size: 15px;
		letter-spacing: 2px;
	}
	.portal-input--center {
		font-size: 20px;
		letter-spacing: 6px;
	}
}

/* ── Flat, no-photo redesign (Login.aspx / ApplicationLogin.aspx) ──────
   Scoped to body.portal-auth-flat so the shared navy card used by
   VerifyOTP.aspx keeps its existing look. ─────────────────────────── */

.portal-auth-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0 auto 16px;
	text-align: center;
}

.portal-auth-brand .portal-brand-img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: contain;
	background: transparent;
	filter: drop-shadow(0 4px 10px rgba(2, 91, 128, 0.22));
}

.portal-auth-brand-name {
	margin: 6px 0 0;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--su-navy-deep);
}

.portal-auth-brand-sub {
	margin: 2px 0 0;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--su-navy);
}

body.portal-auth-flat .container-login100 {
	flex-direction: column;
}

body.portal-auth-flat .wrap-login100.portal-auth-card {
	width: 380px;
}

body.portal-auth-flat .portal-auth-card,
body.portal-auth-flat .wrap-login100.portal-auth-card {
	background: #ffffff !important;
	box-shadow: 0 14px 34px rgba(2, 91, 128, 0.16);
	border: 1px solid rgba(2, 91, 128, 0.08);
	padding: 26px 26px 22px !important;
}

body.portal-auth-flat .portal-auth-inner {
	max-width: none;
}

body.portal-auth-flat .portal-heading {
	color: var(--su-navy-deep);
	text-shadow: none;
	font-size: 16px;
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}

body.portal-auth-flat .portal-hint {
	color: #52697a;
}

body.portal-auth-flat .portal-field label {
	color: #33475b;
}

body.portal-auth-flat .portal-input {
	border-color: #d7dee4;
	box-shadow: none;
}

body.portal-auth-flat .portal-input:focus {
	border-color: var(--su-navy);
	box-shadow: 0 0 0 3px rgba(2, 91, 128, 0.16);
}

body.portal-auth-flat .portal-error {
	color: #b91c1c;
	background: #fee2e2;
	border: 1px solid #fca5a5;
}

body.portal-auth-flat .portal-footer {
	margin-top: 20px;
	padding-top: 0;
	border-top: none;
}

body.portal-auth-flat .portal-footer-links a,
body.portal-auth-flat .portal-footer-links button {
	color: var(--su-navy);
}

body.portal-auth-flat .portal-footer-links a:hover,
body.portal-auth-flat .portal-footer-links button:hover {
	color: var(--su-navy-deep);
}

body.portal-auth-flat .portal-footer-links .sep {
	color: rgba(2, 91, 128, 0.3);
}

.portal-copyright {
	margin: 22px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: rgba(2, 91, 128, 0.55);
}

/* ── Shared "Contact Support / Forgot Password" modal (Login.aspx, ApplicationLogin.aspx) ── */
.login-help-success {
	color: #1a7f37;
	display: block;
	text-align: center;
	margin-bottom: 10px;
	font-size: 13px;
}

.login-help-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.login-help-overlay.is-open {
	display: flex;
}

.login-help-modal {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 0;
	padding: 24px;
	color: #333;
	font-family: "Roboto", "Segoe UI", sans-serif;
}

.login-help-modal h3 {
	margin: 0 0 6px;
	color: #037FB2;
	font-size: 18px;
}

.login-help-modal p {
	margin: 0 0 16px;
	font-size: 13px;
	color: #666;
}

.login-help-field {
	margin-bottom: 14px;
}

.login-help-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.login-help-field input,
.login-help-field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 0;
	font-size: 14px;
	box-sizing: border-box;
}

.login-help-field textarea {
	min-height: 80px;
	resize: vertical;
}

.login-help-error {
	color: #b91c1c;
	background: #fee2e2;
	padding: 8px;
	border-radius: 0;
	margin-bottom: 12px;
	display: block;
	font-size: 13px;
}

.login-help-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.login-help-btn-send {
	flex: 1;
	padding: 10px;
	background: #037FB2;
	color: #fff;
	border: none;
	border-radius: 0;
	font-weight: 600;
	cursor: pointer;
}

.login-help-btn-cancel {
	flex: 1;
	padding: 10px;
	background: #eee;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 0;
	font-weight: 600;
	cursor: pointer;
}

.login-help-link {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	padding: 0;
}

@media (max-width: 480px) {
	body.portal-auth-flat .wrap-login100.portal-auth-card {
		width: 100%;
	}
	body.portal-auth-flat .portal-auth-brand .portal-brand-img {
		width: 68px;
		height: 68px;
	}
	body.portal-auth-flat .portal-auth-brand-name {
		font-size: 16px;
		letter-spacing: 1.5px;
	}
}
