.register-page {
    font-family: "Inconsolata", monospace;
	font-size: 18px;
	min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
		radial-gradient(circle at 12% 18%, rgba(86, 152, 210, 0.18), transparent 16%),
        radial-gradient(circle at 14% 78%, rgba(66, 128, 190, 0.20), transparent 18%),
        radial-gradient(circle at 48% 92%, rgba(156, 88, 170, 0.15), transparent 16%),
        radial-gradient(circle at 84% 70%, rgba(116, 78, 160, 0.20), transparent 20%),
        radial-gradient(circle at 74% 28%, rgba(86, 128, 186, 0.22), transparent 18%),
        radial-gradient(circle at 60% 22%, rgba(210, 92, 146, 0.16), transparent 18%),
        linear-gradient(135deg, #233240 0%, #2D3F53 42%, #263746 72%, #18232d 100%);
}

legend{
	text-align: center;
    margin: 0 0 40px;
    font-size: 32px;
	font-weight: 700;
} 

.card {
    width: 600px;
    padding: 50px 50px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
	box-shadow: 0 8px 30px rgba(0,0,0,0.20);
    color: white;
}

.input {
    margin: 40px 0;
}

.input label.label {
	display: block;
   	margin: 7px 0;
	font-size: 16px;
}

.input input {
    width: 100%;
	box-sizing: border-box;
	margin: 4px 0;
	padding: 12px 14px;
	border: none;
	border-radius: 12px;
	background: rgba(255,255,255,0.90);
	color: #1f2933;
	font-size: 17px;
}


.email-row {
	width: 70%;
    display: flex;
	flex: 1;
    align-items: center;
    gap: 5px;
}

.email-row span {
    white-space: nowrap;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.input input::placeholder {
	color: #888; 
	font-size: 17px;
}

button{
   	display: block;
	margin: 50px auto 40px;
    width: 150px;
    padding: 12px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 1px;
}

button:hover {
    background: #3557e0;
	color: white;
	font-size: 14px;
}

.login {
	display: flex;
    font-size: 19px;
    color: #CCC1C1;
	justify-content: center
}

.login a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
	margin-left: 5px;
}

.login a:hover{
	color: wheat;
}

/* Link quay lại */
.back-link{
	display: flex;
	width: fit-content;
	margin-top: 30px;
	color: #9DAFC8;
	text-decoration: none;
	align-items: flex-start;
}

.back-link:hover{
	color: white;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

.card{
    box-sizing: border-box;
}

.card legend, legend{
    display: block;
    width: 100%;
    text-align: center;
}



@media (max-width: 500px) {
    .register-page {
        padding: 10px;
        align-items: center;
    }

 	.card {
        width: calc(100vw - 32px);
		padding: 28px 20px;
        max-width: 380px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .card legend,
    legend {
        width: 100%;
        text-align: center;
    }

    .input {
        margin: 24px 0;
    }

    .input label.label {
        font-size: 16px;
		margin:  0 0 6px;
    }

    .input input {
        font-size: 18px;
        padding: 12px 14px;
    }

    .email-row {
        width: 100%;
    }

	.email-row input {
		min-width: 0;
	}
	
    button {
        margin: 30px auto 24px;
        font-size: 16px;
    }

    .login {
        font-size: 18px;
        flex-wrap: wrap;
        gap: 4px;
    }
}