/* Pływający widget dla gości dopasowany do złoto-hebanowego stylu Nedds24.pl */
#registerdiv {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	background: #1c1a17;
	border: 1px solid #4d4133;
	border-top: 2px solid #e2b879;
	border-radius: 8px;
	padding: 16px 18px;
	width: 320px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
	font-family: Tahoma, Verdana, Arial, sans-serif;
	box-sizing: border-box;
	animation: slideInRight 0.3s ease-out;
}

/* Animacja wysunięcia z prawej strony */
@keyframes slideInRight {
	from {
		transform: translateX(120%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Przycisk zamknięcia X */
#close-registerdiv {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #9ea1a6;
	font-size: 18px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	transition: color 0.2s ease;
}

#close-registerdiv:hover {
	color: #e2b879;
	transform: none;
}

/* Układ zawartości */
.register-box-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

/* Tytuł — ciepłe złoto */
.register-title {
	color: #e2b879;
	font-size: 13.5px;
	font-weight: bold;
	margin: 0;
	padding-right: 18px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Tekst informacyjny */
.register-text {
	color: #d6cfc7;
	font-size: 11.5px;
	margin: 0 0 8px 0;
	line-height: 1.45;
}

/* Kontener przycisków akcji */
.register-actions {
	display: flex;
	gap: 8px;
	width: 100%;
}

/* Wspólny styl przycisków — 1:1 jak przyciski pod postami */
.btn-auth {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 5px;
	font-weight: bold;
	font-size: 11.5px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
	text-decoration: none !important;
	transition: all 0.18s ease;
}

.btn-auth:active {
	transform: scale(0.98);
}

/* Przycisk Zaloguj się — ciemny heban ze złotą ramką */
.btn-login {
	background: linear-gradient(180deg, #2b2824 0%, #1d1b18 100%);
	color: #e6dfd5 !important;
	border: 1px solid #4d4133;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-login:hover {
	background: linear-gradient(180deg, #3b352d 0%, #26221c 100%);
	border-color: #c59b60;
	color: #ffffff !important;
}

/* Przycisk Zarejestruj się — wyróżniony szlachetnym złotym gradientem */
.btn-register {
	background: linear-gradient(180deg, #8d6d47 0%, #6b563c 100%);
	color: #ffffff !important;
	border: 1px solid #c59b60;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-register:hover {
	background: linear-gradient(180deg, #a37f54 0%, #7d6547 100%);
	border-color: #e2b879;
	box-shadow: 0 0 10px rgba(226, 184, 121, 0.35);
}

/* Ikony wewnątrz przycisków */
.btn-icon {
	width: 12px;
	height: 12px;
	object-fit: contain;
}

/* Zachowanie na urządzeniach mobilnych (smartfony) */
@media (max-width: 480px) {
	#registerdiv {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		border-radius: 10px 10px 0 0;
		border-left: none;
		border-right: none;
		border-bottom: none;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.75);
	}
}

/* Pomocnicza klasa MyBB */
.upper-welcome-wrapper {
	display: inline-block;
}
/* ==========================================================================
   DOPASOWANIE FORMULARZA REJESTRACJI I AUTOUZUPEŁNIANIA PRZEGLĄDARKI
   ========================================================================== */

/* 1. Ujednolicenie wszystkich pól tekstowych i list wyboru */
input.textbox,
input[type="text"],
input[type="password"],
input[type="email"],
select {
	background-color: #181613 !important;
	color: #e6dfd5 !important;
	border: 1px solid #4d4133 !important;
	border-radius: 5px !important;
	padding: 6px 10px !important;
	font-family: Tahoma, Verdana, Arial, sans-serif !important;
	font-size: 12.5px !important;
	color-scheme: dark;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.textbox:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
	border-color: #c59b60 !important;
	box-shadow: 0 0 0 2px rgba(197, 155, 96, 0.18) !important;
}

/* 2. Naprawa białych pól po autouzupełnieniu przez przeglądarkę (Chrome/Edge/Firefox) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px #181613 inset !important;
	-webkit-text-fill-color: #e6dfd5 !important;
	caret-color: #e2b879 !important;
	border: 1px solid #6b563c !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* 3. Złote pola wyboru (checkbox i radio) zamiast domyślnych niebieskich */
input[type="checkbox"],
input[type="radio"] {
	accent-color: #c59b60;
	cursor: pointer;
}
