/*
 * DDC Login — Estilos de la tarjeta de acceso, alta y recuperación.
 * Tamaños en px a propósito: el tema usa html{font-size:62.5%} y con rem todo
 * se veía diminuto (~10px). Con px el tamaño es siempre el correcto.
 */

.ddc-login-wrap {
	--ddc-red: #e10600;
	--ddc-red-bright: #ff1f1f;
	--ddc-red-glow: rgba(225, 6, 0, 0.45);
	--ddc-panel: rgba(16, 16, 18, 0.82);
	--ddc-text: #f2f2f2;
	--ddc-muted: #b3b3b8;
	--ddc-field-bg: rgba(255, 255, 255, 0.05);

	display: flex;
	align-items: center;
	justify-content: center;

	/* Banda negra a todo el ancho de la ventana (full-bleed, sale del contenedor del tema). */
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 56px 16px;
	background: #000;
}

.ddc-login-wrap * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ Card */
.ddc-card {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 34px 32px 30px;
	background: var(--ddc-panel);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.35),
		0 24px 60px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(14px);
	color: var(--ddc-text);
	font-family: "Oswald", "Barlow Condensed", system-ui, -apple-system, sans-serif;
	animation: ddc-rise 0.5s ease both;
}

@keyframes ddc-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

.ddc-title {
	margin: 0 0 22px;
	padding: 0;
	font-family: "Barlow Condensed", "Oswald", sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.05;
	letter-spacing: 1px;
	color: var(--ddc-red-bright);
	text-shadow:
		0 0 14px var(--ddc-red-glow),
		0 0 34px rgba(225, 6, 0, 0.3);
}

/* ---------------------------------------------------------------- Fields */
.ddc-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ddc-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ddc-field label {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--ddc-muted);
}

.ddc-optional {
	color: var(--ddc-muted);
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0;
}

.ddc-login-wrap .ddc-form input[type="text"],
.ddc-login-wrap .ddc-form input[type="email"],
.ddc-login-wrap .ddc-form input[type="password"] {
	width: 100%;
	margin: 0;
	padding: 13px 15px;
	color: var(--ddc-text);
	font-size: 16px;
	line-height: 1.3;
	font-family: inherit;
	background: var(--ddc-field-bg);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 11px;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ddc-login-wrap .ddc-form input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

/* Foco neutro y sutil (sin borde rojo) */
.ddc-login-wrap .ddc-form input[type="text"]:focus,
.ddc-login-wrap .ddc-form input[type="email"]:focus,
.ddc-login-wrap .ddc-form input[type="password"]:focus {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.ddc-pass-wrap {
	position: relative;
}

.ddc-pass-wrap input {
	padding-right: 62px !important;
}

.ddc-toggle-pass {
	position: absolute;
	top: 50%;
	right: 7px;
	transform: translateY(-50%);
	padding: 7px 11px;
	font-size: 13px;
	font-family: inherit;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--ddc-muted);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ddc-toggle-pass:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.ddc-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--ddc-muted);
	cursor: pointer;
	user-select: none;
}

.ddc-check input {
	accent-color: var(--ddc-red);
	width: 17px;
	height: 17px;
}

.ddc-hint {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--ddc-muted);
	line-height: 1.45;
}

/* --------------------------------------------------------------- Botón */
.ddc-login-wrap .ddc-btn {
	margin-top: 8px;
	padding: 15px 16px;
	width: 100%;
	font-family: "Barlow Condensed", "Oswald", sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, var(--ddc-red-bright), var(--ddc-red) 60%, #8f0200);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
	transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.ddc-login-wrap .ddc-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 12px 34px rgba(225, 6, 0, 0.5), 0 0 26px var(--ddc-red-glow);
}

.ddc-login-wrap .ddc-btn:active {
	transform: translateY(0);
}

/* --------------------------------------------------------------- Enlaces */
.ddc-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.ddc-links a {
	color: var(--ddc-muted);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ddc-links a:hover {
	color: var(--ddc-red-bright);
	text-shadow: 0 0 10px var(--ddc-red-glow);
}

/* -------------------------------------------------------------- Mensajes */
.ddc-notice {
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 11px;
	font-size: 15px;
	line-height: 1.5;
}

.ddc-notice ul {
	margin: 0;
	padding-left: 18px;
}

.ddc-notice a {
	color: #fff;
	font-weight: 600;
}

.ddc-notice-error {
	color: #ffd7d5;
	background: rgba(225, 6, 0, 0.12);
	border: 1px solid var(--ddc-red);
	box-shadow: 0 0 18px rgba(225, 6, 0, 0.18);
}

.ddc-notice-ok {
	color: #d6ffd9;
	background: rgba(0, 200, 60, 0.1);
	border: 1px solid rgba(0, 200, 60, 0.5);
}

/* ------------------------------------------------------------- Honeypot */
.ddc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 600px) {
	.ddc-title {
		font-size: 30px;
	}
	.ddc-card {
		padding: 26px 20px;
	}
	.ddc-login-wrap {
		padding: 36px 12px;
	}
}
