/*
 * Doctaz auth pages (login / register / forgot / otp / reset)
 * Brand: teal #0d9488 (set via --doctaz-brand in doctaz-theme.css).
 * Pair with ubold bootstrap.min.css + app.min.css + icons.min.css
 * + doctaz-theme.css (loaded last, supplies brand tokens).
 */

body.auth-page {
	min-height: 100vh;
	margin: 0;
	font-family: "Nunito", "Poppins", sans-serif;
	color: #323a46;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;

	/* Soft teal aurora on a neutral base + faint medical-cross pattern */
	background-color: #eef1f6;
	background-image:
		url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%3E%3Cpath%20d='M22%2014h4v8h8v4h-8v8h-4v-8h-8v-4h8z'%20fill='%230d9488'%20fill-opacity='0.05'/%3E%3C/svg%3E"),
		radial-gradient(circle at 12% 18%, rgba(13, 148, 136, 0.20), transparent 38%),
		radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.18), transparent 40%),
		radial-gradient(circle at 80% 86%, rgba(13, 148, 136, 0.18), transparent 42%),
		radial-gradient(circle at 18% 88%, rgba(45, 212, 191, 0.14), transparent 40%);
	background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
	background-attachment: fixed;
}

.auth-card {
	width: 100%;
	max-width: 460px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 45px rgba(56, 65, 74, 0.12);
	padding: 40px 36px 32px;
}

.auth-card--wide {
	max-width: 720px;
}

.auth-logo {
	display: block;
	margin: 0 auto 12px;
	height: 44px;
	width: auto;
	/* New logo is a white wordmark on transparent — give it a brand backing
	   so it reads on the white auth card. */
	background: var(--doctaz-brand, #0d9488);
	padding: 12px 18px;
	border-radius: 14px;
	box-sizing: content-box;
}

.auth-wordmark {
	display: none;
	text-align: center;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 28px;
	letter-spacing: .5px;
	color: var(--doctaz-brand);
	margin-bottom: 8px;
}

.auth-card h4 {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	margin: 18px 0 4px;
}

.auth-sub {
	margin-bottom: 24px;
	color: #6c757d;
}

.auth-card .form-group,
.auth-card .input-group {
	margin-bottom: 18px;
}

.auth-card label {
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 6px;
	color: #495057;
}

.auth-card .input-group-text {
	background: #fff;
	border-right: 0;
	color: #98a6ad;
	border-radius: 8px 0 0 8px;
}

.auth-card .form-control {
	min-height: 44px;
	border-radius: 8px;
	box-shadow: none;
}

.auth-card .input-group > .form-control {
	border-left: 0;
	border-radius: 0 8px 8px 0;
}

/* Trailing eye toggle sits on the password field */
.auth-card .input-group > .input-group-append .input-group-text {
	border-left: 0;
	border-right: 1px solid #ced4da;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	transition: color .15s ease-in-out;
}

.auth-card .input-group > .input-group-append .input-group-text:hover {
	color: var(--doctaz-brand);
}

.auth-card .input-group > .form-control.has-toggle {
	border-right: 0;
	border-radius: 0;
}

.auth-card .input-group:focus-within .input-group-text {
	border-color: var(--doctaz-brand);
	color: var(--doctaz-brand);
}

.auth-card .input-group:focus-within .form-control,
.auth-card .form-control:focus {
	border-color: var(--doctaz-brand);
	box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.12);
}

.auth-card .field-error {
	color: #dc3545;
	font-size: 0.8125rem;
	margin-top: 4px;
}

.auth-card .form-control.is-invalid {
	border-color: #dc3545;
}

.btn-signin,
.auth-card .btn-primary {
	min-height: 44px;
	font-weight: 600;
	border-radius: 8px;
}

.auth-divider {
	border: 0;
	border-top: 1px solid #eef0f4;
	margin: 22px 0 18px;
}

.auth-links {
	font-size: 0.875rem;
}

.auth-links a {
	font-weight: 600;
}

/* Shared inline alert (auth/alert.php) */
.auth-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 0.9rem;
}
.auth-alert .auth-alert-icon { font-size: 18px; line-height: 1; margin-top: 1px; }
.auth-alert-success { background: var(--doctaz-brand-soft); color: var(--doctaz-brand-darker); border: 1px solid var(--doctaz-brand-soft-border); }
.auth-alert-error   { background: #fde8e8; color: #842029; border: 1px solid #f5c2c7; }
.auth-alert-info    { background: #e7f1ff; color: #084298; border: 1px solid #b6d4fe; }
.auth-alert-dismiss { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0 4px; }
.auth-alert-dismiss:hover { opacity: 1; }

/* Register: role-selection list */
.role-grid {
	display: grid;
	gap: 12px;
}

.role-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1.5px solid #e5e8eb;
	border-radius: 12px;
	background: #fff;
	color: #323a46;
	font-weight: 600;
	text-decoration: none;
	transition: all .15s ease-in-out;
}

.role-btn:hover {
	border-color: var(--doctaz-brand);
	box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12);
	transform: translateY(-1px);
	color: #323a46;
}

.role-btn .role-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	background: var(--doctaz-brand-soft);
	color: var(--doctaz-brand);
}

.role-btn .role-arrow {
	margin-left: auto;
	color: #98a6ad;
}

/* Registration wizard header — flat teal accent (replaces purple→cyan gradient) */
.auth-card .reg-header {
	background: var(--doctaz-brand);
	color: #fff;
	margin: -40px -36px 24px;
	padding: 22px 28px;
	border-top-left-radius: 14px;
	border-top-right-radius: 14px;
}
.auth-card .reg-header h3 {
	color: #fff;
	margin: 0;
	font-weight: 600;
}

@media (max-width: 480px) {
	.auth-card {
		padding: 32px 22px 26px;
	}
	.auth-card .reg-header {
		margin: -32px -22px 20px;
		padding: 18px 22px;
	}
}
