/* Candidate Job Portal — auth & account form styles.
 * Deliberately framework-free and theme-independent: relies on generic,
 * low-specificity class names (all prefixed cjp-) so it layers cleanly
 * on top of any theme without fighting it.
 */

.cjp-form-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 20px 40px;
}

.cjp-form-wrap h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.cjp-form-intro {
	color: #475467;
	margin-bottom: 1.25rem;
}

.cjp-notice {
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.cjp-notice ul {
	margin: 0;
	padding-left: 1.1rem;
}

.cjp-notice--error {
	background: #fef3f2;
	border: 1px solid #fda29b;
	color: #912018;
}

.cjp-notice--success {
	background: #ecfdf3;
	border: 1px solid #6ce9a6;
	color: #05603a;
}

.cjp-notice:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cjp-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cjp-field-row {
	display: flex;
	gap: 1rem;
}

.cjp-field-row .cjp-field {
	flex: 1 1 0;
	min-width: 0;
}

.cjp-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}

.cjp-field input[type="text"],
.cjp-field input[type="email"],
.cjp-field input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 1rem;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fff;
}

.cjp-field input:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.cjp-field-hint {
	color: #667085;
	font-size: 0.82rem;
	margin: 0.25rem 0 0;
}

.cjp-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
}

.cjp-field--checkbox input[type="checkbox"] {
	margin-top: 0.2rem;
}

.cjp-button {
	display: inline-block;
	border: none;
	border-radius: 6px;
	padding: 12px 20px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.cjp-button--primary {
	background: #2563eb;
	color: #ffffff;
}

.cjp-button--primary:hover,
.cjp-button--primary:focus {
	background: #1d4ed8;
}

.cjp-button--secondary {
	background: #f2f4f7;
	color: #1d2939;
}

.cjp-button:focus {
	outline: 2px solid #1d2939;
	outline-offset: 2px;
}

.cjp-form-footer {
	margin-top: 1rem;
	font-size: 0.95rem;
}

/* Honeypot: hidden from sighted users, still present in the DOM. */
.cjp-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.cjp-field-row {
		flex-direction: column;
		gap: 1rem;
	}
}
