/* ===========================================================
   RNK Vogue — Mobile number + OTP sign-in
   Builds on login.css variables and card layout.
   =========================================================== */

.rnk-auth {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	text-align: left;
}

.rnk-auth .rnk-login-card__title {
	font-family: var(--rnk-login-font-display);
	font-size: 44px;
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
	text-align: center;
	color: var(--rnk-login-text);
}

.rnk-auth .rnk-login-card__subtitle {
	margin: -8px 0 6px;
}

.rnk-auth [hidden] {
	display: none !important;
}

/* -------- Google first -------- */
.rnk-auth__google {
	font-size: 15px;
	font-weight: 600;
}

.rnk-auth__or {
	margin: 0;
}

/* -------- Steps -------- */
.rnk-auth__step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.rnk-auth__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--rnk-login-text);
}

.rnk-auth__phone {
	display: flex;
	align-items: stretch;
	height: 58px;
	border: 1px solid var(--rnk-login-border);
	border-radius: 16px;
	background: var(--rnk-login-white);
	overflow: hidden;
	transition: border-color .3s ease, box-shadow .3s ease;
}

.rnk-auth__phone:focus-within {
	border-color: var(--rnk-login-pink);
	box-shadow: 0 0 0 4px rgba(239, 169, 181, .22);
}

.rnk-auth__cc {
	display: flex;
	align-items: center;
	padding: 0 14px 0 18px;
	font-size: 15px;
	font-weight: 500;
	color: var(--rnk-login-body);
	border-right: 1px solid var(--rnk-login-border);
	background: #fffafa;
}

.rnk-auth .rnk-auth__input,
body.login #login .rnk-auth .rnk-auth__input {
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--rnk-login-border);
	border-radius: 16px;
	background: var(--rnk-login-white);
	font-family: inherit;
	font-size: 16px;
	color: var(--rnk-login-text);
	box-shadow: none;
	transition: border-color .3s ease, box-shadow .3s ease;
}

.rnk-auth .rnk-auth__phone .rnk-auth__input,
body.login #login .rnk-auth .rnk-auth__phone .rnk-auth__input {
	height: 100%;
	border: 0;
	border-radius: 0;
	letter-spacing: .04em;
}

.rnk-auth .rnk-auth__input:focus,
body.login #login .rnk-auth .rnk-auth__input:focus {
	outline: none;
	border-color: var(--rnk-login-pink);
	box-shadow: 0 0 0 4px rgba(239, 169, 181, .22);
}

.rnk-auth .rnk-auth__phone .rnk-auth__input:focus,
body.login #login .rnk-auth .rnk-auth__phone .rnk-auth__input:focus {
	box-shadow: none;
}

.rnk-auth .rnk-auth__code,
body.login #login .rnk-auth .rnk-auth__code {
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: .5em;
	padding-left: calc(18px + .5em);
}

.rnk-auth__hint {
	margin: -4px 0 0;
	font-size: 13px;
	color: var(--rnk-login-muted);
}

.rnk-auth__sent {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rnk-login-body);
}

.rnk-auth__sent strong {
	color: var(--rnk-login-text);
	white-space: nowrap;
}

/* -------- Buttons -------- */
.rnk-auth__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 58px;
	margin-top: 4px;
	border: 0;
	border-radius: 30px;
	background: var(--rnk-login-pink-btn);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.rnk-auth__btn:hover:not(:disabled),
.rnk-auth__btn:focus-visible {
	background: var(--rnk-login-pink-btn-hover);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(232, 156, 171, .4);
}

.rnk-auth__btn:disabled {
	opacity: .7;
	cursor: wait;
}

.rnk-auth__link {
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--rnk-login-pink);
	cursor: pointer;
}

.rnk-auth__link:hover:not(:disabled) {
	text-decoration: underline;
}

.rnk-auth__link:disabled {
	color: var(--rnk-login-muted);
	font-weight: 500;
	cursor: default;
}

.rnk-auth__resend {
	align-self: center;
	margin-top: 2px;
}

/* -------- Agree -------- */
.rnk-auth__agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--rnk-login-body);
	cursor: pointer;
}

.rnk-auth__agree input {
	flex: 0 0 auto;
	margin-top: 3px;
	accent-color: var(--rnk-login-pink-btn);
}

.rnk-auth__agree a {
	color: var(--rnk-login-pink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* -------- Messages -------- */
.rnk-auth__alert {
	margin: 0;
	padding: 12px 16px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.5;
	background: #fdecef;
	color: #9b2c3b;
}

.rnk-auth__alert[data-type="success"] {
	background: #eaf7ee;
	color: #1f6b3a;
}

.rnk-auth__alert[data-type="info"] {
	background: #eef4fd;
	color: #1f4f8a;
	font-weight: 600;
}

.rnk-auth__test {
	margin: 0;
	padding: 8px 12px;
	border: 1px dashed #d9a400;
	border-radius: 10px;
	background: #fff8e1;
	font-size: 12px;
	color: #7a5b00;
	text-align: center;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.rnk-auth__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rnk-auth__turnstile:empty {
	display: none;
}

.rnk-auth__switch {
	margin-top: 4px;
}

.rnk-auth__choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 16px;
}

.rnk-auth__choice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #f0d5dc;
	border-radius: 12px;
	background: #fff;
}

.rnk-mobile-prompt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0;
	padding: 14px 20px;
	background: #fff6f8;
	border-bottom: 1px solid #f0d5dc;
	color: #2d2d2d;
}

.rnk-mobile-prompt p {
	margin: 0;
	flex: 1 1 220px;
}

.rnk-mobile-prompt .rnk-auth__btn,
.rnk-mobile-prompt form {
	margin: 0;
}

/* -------- wp-login.php layout -------- */
body.login.rnk-auth-page #login {
	overflow-y: auto;
}

body.login #login .rnk-auth form.rnk-auth__step {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

body.login #login .rnk-auth .rnk-auth__label {
	margin: 0;
	line-height: 1.4;
}

body.login #login .rnk-auth .rnk-auth__agree {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
}

body.login #login .rnk-auth .rnk-auth__agree input[type="checkbox"] {
	-webkit-appearance: checkbox;
	appearance: auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	border: 0;
	background: none;
	box-shadow: none;
	accent-color: var(--rnk-login-pink-btn);
}

body.login #login .rnk-auth .rnk-auth__agree input[type="checkbox"]::before {
	content: none;
}

body.login.rnk-auth-page .rnk-auth-card {
	padding: 44px 48px;
}

body.login.rnk-auth-page .rnk-auth-safe {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

body.login.rnk-auth-page #backtoblog,
body.login.rnk-auth-page .language-switcher {
	display: none;
}

/* -------- /register layout -------- */
body.rnk-register-page .rnk-login-card .rnk-auth .rnk-login-card__title {
	font-size: 44px;
	margin: 0;
}

@media (max-width: 991px) {
	.rnk-auth .rnk-login-card__title {
		font-size: 36px;
	}

	body.login.rnk-auth-page .rnk-auth-card {
		padding: 32px 24px;
	}
}

@media (max-width: 480px) {
	.rnk-auth {
		gap: 16px;
	}

	.rnk-auth .rnk-login-card__title {
		font-size: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rnk-auth__btn,
	.rnk-auth__phone,
	.rnk-auth .rnk-auth__input {
		transition: none;
	}

	.rnk-auth__btn:hover:not(:disabled) {
		transform: none;
	}
}
