@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter.woff2') format('woff2');
    font-display: swap;
}

html {
	background: #ffffff;
    font-family: Inter;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Inter;
    margin: unset;
}


.scrolling-background {
    position: fixed;
    top: 200;
    left: 0;
    width: 200%;
    height: 100vh;
    background: url('/static/media/auth/bg.png');
    background-size: 100% 100%;
    animation: scroll-background 60s linear infinite;
    z-index: -1;
}

@keyframes scroll-background {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#topnav_logo {
    margin-top: 50px;
    margin-bottom: 50px;
	width: 200px;
}

.auth_panel {
    border: 1px solid #E1E1E2;
    width: 100%;
    max-width: 400px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 50px;
}

.auth_panel_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.login_message {
    margin-bottom: 40px;
    color: #3e44c6;
    font-style: italic;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form > input, .submit_button {
    border: 1px solid #E1E1E2;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 40px;
    width: 300px;
}

label {
    margin-bottom: 10px;
    font-weight: 500;
    color: grey;
}

.input_name {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 15px;
}

.input_field {
    display: flex;
    flex-direction: column;
    align-items: start;
}




.errorlist {
    width: 250px;
    color: #1C1F62;
}

.submit_button {
    background-color: rgb(60 68 233);
    color: white;
    font-weight: 600;
    font-family: Inter;
    margin-top: 30px;
    width: 100%;
    height: 55px;
    border-radius: 5px;
    font-size: 16px;
    border: none;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.1);
}
.submit_button:hover:not([disabled]),
.submit_button:focus:not([disabled]) {
    cursor: pointer;
    background-color: #1C1F62;
}
.submit_button[disabled] {
    filter: opacity(0.5);
}

.signup_message {
    margin-top: 30px;
    color: black;
    mix-blend-mode: difference;
    font-weight: 600;
}

.input_field input {
    width: 100%;
    font-size: 16px;
    padding: 0 10px;
    height: 55px;
    border-radius: 5px;
    border: 2px solid #e7e7e7;
    background: #fdfdfd;
    box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.05);
    background: rgb(250 250 250/ 75%);
    backdrop-filter: blur(30px);
}

.login_menu {
    padding: 60px 40px;
    border: 2px solid #e7e7e7;
    border-radius: 35px;
    /* background: rgb(255, 255, 255, 0.1); */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 150px;
    max-width: 540px;
	min-height: 60%;
    width: 93%;
    box-sizing: border-box;
	
}

.input_field input:hover {
    cursor: text;
    filter: brightness(0.95);
}

.input_address {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.input_address_title {
	display: flex;
	flex-direction: row;
	align-items: end;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 10px;
}

.input_address_title > div:first-child {
	font-weight: 500;
	font-size: 18px;
}

.input_address_title > div:last-child {
	color: #818181;
	text-decoration: underline;
	cursor: pointer;
	font-size: 12px;
	display: flex;
}

.input_address_extra {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.input_postcode_field {
    display: flex;
    align-items: center;
    width: 100%;
}

#input_postcode_search {
    font-size: 16px;
    padding: 0 20px;
    height: 55px;
    border-radius: 5px;
    box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4d4d4d;
    cursor: pointer;
    background: rgb(255, 255, 255, 0.5);
    backdrop-filter: blur(30px);
    filter: brightness(0.8);
    display: none;
}

.input_address_q img {
    filter: opacity(0.5);
    width: 12px;
    margin-right: 7px;
}

.input_name > * {
    width: 50%;
}

/* Terms / Privacy */
.terms-section {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    /* margin: 1rem 0; */
    margin-top: 2rem;
    box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: rgb(237 237 237 / 50%);
    backdrop-filter: blur(30px);
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    margin-top: 15px;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background-color: white;
    position: relative;
    transition: all 0.2s ease;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 30%;
    top: 5%;
    width: 25%;
    height: 60%;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #3e44c6;
    border-color: #3e44c6;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

.terms-checkbox:hover .checkmark {
    border-color: #3e44c6;
    box-shadow: 0 0 0 2px rgba(62, 68, 198, 0.1);
}

.terms-text {
    color: #4b5563;
    font-weight: 500;
}

.terms-link {
    color: #3e44c6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #2e34a6;
    text-decoration: underline;
}

.terms-checkbox input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #3e44c6;
    outline-offset: 2px;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: white;
	padding: 45px;
	margin: 15% auto;
	border-radius: 8px;
	width: 75%;
	max-width: 400px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	margin-bottom: auto;
}

.modal-actions {
	margin-top: 50px;
	display: flex;
	justify-content: space-around;
}

.modal-actions .confirm {
	background-color: #3736d5;
	color: white;
	padding: 15px 25px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.modal-actions .cancel {
	background-color: #6c757d;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.modal-actions .confirm:hover {
	filter: brightness(0.5);
}

.modal-actions .cancel:hover {
	filter: brightness(0.5);
}

.modal-body {
    margin: 35px 0;
}