/* Pagina "Creează cont" (inregistrare.php) */

.rg{
	--rg-bleumarin: #052F41;
	--rg-albastru: #1B599B;
	--rg-text: #434B65;
	--rg-discret: #7A8294;
	--rg-bordura: #DCE0E5;
	--rg-rosu: #D1242F;

	box-sizing: border-box;
	width: 100%;
	max-width: 672px;
	margin: 0 auto 80px auto;
	padding: 0 16px;
	font-family: 'Rubik', sans-serif;
	color: var(--rg-bleumarin);
}

.rg *, .rg *::before, .rg *::after{
	box-sizing: border-box;
}

.rg [hidden]{
	display: none !important;
}

.rg-antet{
	margin-bottom: 32px;
}

.rg-titlu{
	margin: 0 0 12px 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
}

.rg-subtitlu{
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--rg-albastru);
}

.rg-form{
	display: flex;
	flex-flow: column;
	gap: 28px;
}

.rg-sectiune{
	display: flex;
	flex-flow: column;
	gap: 16px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--rg-bordura);
	border-radius: 5px;
	background: white;
	min-width: 0;
}

.rg-sectiune-titlu{
	float: left;
	width: 100%;
	margin: 0 0 4px 0;
	padding: 0;
	font-size: 20px;
	font-weight: 600;
}

.rg-rand{
	display: flex;
	gap: 16px;
}

.rg-rand > .rg-camp{
	flex: 1;
	min-width: 0;
}

.rg-camp{
	display: flex;
	flex-flow: column;
	gap: 6px;
}

.rg-camp > label,
.rg-eticheta{
	font-size: 15px;
	font-weight: 500;
	color: var(--rg-text);
}

.rg-camp input[type="text"],
.rg-camp input[type="email"],
.rg-camp input[type="password"],
.rg-camp input[type="tel"],
.rg-camp select{
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--rg-bordura);
	border-radius: 5px;
	background: white;
	font-family: 'Rubik', sans-serif;
	font-size: 17px;
	color: var(--rg-bleumarin);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rg-camp select{
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B599B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}

.rg-camp input:focus,
.rg-camp select:focus{
	border-color: var(--rg-albastru);
	box-shadow: 0 0 0 3px rgba(27, 89, 155, 0.12);
}

.rg-camp--eroare input[type="text"],
.rg-camp--eroare input[type="email"],
.rg-camp--eroare input[type="password"],
.rg-camp--eroare input[type="tel"],
.rg-camp--eroare select{
	border-color: var(--rg-rosu);
}

.rg-ajutor{
	font-size: 13px;
	color: var(--rg-discret);
}

.rg-eroare{
	font-size: 14px;
	color: var(--rg-rosu);
}

.rg-eroare:empty{
	display: none;
}

/* tipul contului */

.rg-tip{
	display: flex;
	gap: 8px;
}

.rg-tip-optiune{
	flex: 1;
	position: relative;
	cursor: pointer;
}

.rg-tip-optiune input,
.rg-bifa input{
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.rg-tip-optiune span{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border: 1px solid var(--rg-bordura);
	border-radius: 5px;
	font-size: 17px;
	font-weight: 500;
	color: var(--rg-albastru);
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.rg-tip-optiune:hover span{
	border-color: var(--rg-albastru);
}

.rg-tip-optiune input:checked + span{
	background: var(--rg-albastru);
	border-color: var(--rg-albastru);
	color: white;
}

.rg-tip-optiune input:focus-visible + span,
.rg-bifa input:focus-visible + span::before{
	box-shadow: 0 0 0 3px rgba(27, 89, 155, 0.25);
}

.rg-nota{
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--rg-text);
}

/* bife */

.rg-clase{
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.rg-bifa{
	position: relative;
	display: inline-flex;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.45;
	color: var(--rg-bleumarin);
}

.rg-bifa span{
	position: relative;
	padding-left: 32px;
}

.rg-bifa span::before{
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border: 1px solid var(--rg-bordura);
	border-radius: 4px;
	background: white;
	transition: background-color 0.15s, border-color 0.15s;
}

.rg-bifa span::after{
	content: "";
	position: absolute;
	left: 7px;
	top: 4px;
	width: 6px;
	height: 11px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
}

.rg-bifa input:checked + span::before{
	background: var(--rg-albastru);
	border-color: var(--rg-albastru);
}

.rg-bifa input:checked + span::after{
	opacity: 1;
}

.rg-camp--eroare .rg-bifa span::before{
	border-color: var(--rg-rosu);
}

.rg-bifa a{
	color: var(--rg-albastru);
	font-weight: 500;
}

/* captcha, mesaje, buton */

.rg-captcha{
	min-height: 65px;
}

.rg-capcana{
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rg-mesaj{
	padding: 14px 16px;
	border-radius: 5px;
	font-size: 15px;
	line-height: 1.45;
}

.rg-mesaj--eroare{
	background: #FDECEE;
	color: var(--rg-rosu);
}

.rg-buton{
	height: 56px;
	border: none;
	border-radius: 5px;
	background: var(--rg-albastru);
	color: white;
	font-family: 'Rubik', sans-serif;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	transition: background-color 0.15s;
}

.rg-buton:hover{
	background: #164A82;
}

.rg-buton:disabled{
	background: var(--rg-discret);
	cursor: default;
}

.rg-login{
	margin: -8px 0 0 0;
	text-align: center;
	font-size: 16px;
	color: var(--rg-text);
}

.rg-login a{
	color: var(--rg-albastru);
	font-weight: 700;
	text-decoration: none;
}

@media screen and (max-width: 700px) {
	.rg-titlu{font-size: 30px;}
	.rg-subtitlu{font-size: 16px;}
	.rg-antet{margin-bottom: 24px;}
	.rg-form{gap: 20px;}
	.rg-sectiune{padding: 18px 16px;}
	.rg-rand{flex-flow: column;}
}
