/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	box-sizing: inherit;
	margin: 0px;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	background-color: rgb(18, 18, 18);
}

#root {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	box-sizing: inherit;
}

/* Container */
.container {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	box-sizing: inherit;
	background-image: radial-gradient(circle at right top, rgb(1, 58, 88), black);
	position: relative;
	border: 40px solid rgb(0, 0, 0);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.container::before {
	min-height: 110px;
	-webkit-box-flex: 1;
	flex-grow: 1;
	content: "";
	display: block;
}

.container::after {
	min-height: 40px;
	-webkit-box-flex: 1;
	flex-grow: 1;
	content: "";
	display: block;
}

/* Form container */
.form-container {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	width: 300px;
	padding: 32px 16px 0px;
	box-sizing: border-box;
	flex-wrap: wrap;
	display: flex;
	text-align: center;
	-webkit-box-pack: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.8);
	position: relative;
	margin: 0px auto;
}

/* Logo */
.logo-link {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	text-align: center;
	box-sizing: inherit;
	position: absolute;
	width: 100px;
	height: 100px;
	top: -70px;
	left: 50%;
	transform: translate(-50%, 0%);
	color: rgb(0, 0, 0);
}

.logo-svg {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	text-align: center;
	color: rgb(0, 0, 0);
	box-sizing: inherit;
	user-select: none;
	display: inline-block;
	fill: currentcolor;
	flex-shrink: 0;
	font-size: 1.5rem;
	transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
	width: 100px;
	height: 100px;
}

/* Title */
.title-container {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	text-align: center;
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	text-transform: uppercase;
	padding: 8px 0px;
	min-height: 70px;
	box-sizing: border-box;
}

.title {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	text-align: center;
	text-transform: uppercase;
	box-sizing: inherit;
	margin: 0px;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.6;
	letter-spacing: 0.25em;
}

/* Form fields */
.form-fields {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	text-align: center;
	box-sizing: inherit;
	width: 100%;
	border-top: 1px dotted rgb(255, 255, 255);
	padding: 16px 0px;
}

/* Input container */
.input-container {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	text-align: center;
	box-sizing: inherit;
	display: inline-flex;
	flex-direction: column;
	position: relative;
	min-width: 0px;
	padding: 0px;
	margin: 0px;
	border: 0px;
	vertical-align: top;
	width: 100%;
}

.input-label {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	text-align: center;
	box-sizing: inherit;
	color: rgba(255, 255, 255, 0.7);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.4375em;
	letter-spacing: 0.00938em;
	display: block;
	transform-origin: left top;
	text-overflow: ellipsis;
	max-width: calc(133% - 32px);
	position: absolute;
	left: 0px;
	top: 0px;
	transform: translate(14px, -9px) scale(0.75);
	z-index: 2;
	pointer-events: auto;
	user-select: none;
	padding: 0px 4px;
	background-color: rgba(0, 0, 0, 0.8);
	white-space: nowrap;
	overflow: hidden;
	transition:
		color 200ms cubic-bezier(0, 0, 0.2, 1),
		transform 200ms cubic-bezier(0, 0, 0.2, 1),
		max-width 200ms cubic-bezier(0, 0, 0.2, 1);
}

/* Label en état d'erreur */
.input-container.error .input-label {
	color: #ff6b6b;
}

.input-wrapper {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	text-align: center;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.4375em;
	letter-spacing: 0.00938em;
	color: rgb(255, 255, 255);
	box-sizing: border-box;
	cursor: text;
	display: inline-flex;
	-webkit-box-align: center;
	align-items: center;
	width: 100%;
	position: relative;
	border-radius: 4px;
}

.input-field {
	width: 100%;
	padding: 16.5px 14px;
	font-size: 1rem;
	font-family: "Roboto", sans-serif;
	color: #fff;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.23);
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s;
}

.input-field:hover {
	border-color: rgba(255, 255, 255, 0.87);
}

.input-field:focus {
	border-color: #90caf9;
	border-width: 2px;
	padding: 15.5px 13px;
}

/* Input en état d'erreur - défini après hover/focus pour avoir la priorité */
.input-container.error .input-field {
	border-color: #ff6b6b;
}

.input-container.error .input-field:hover {
	border-color: #ff6b6b;
}

.input-container.error .input-field:focus {
	border-color: #ff6b6b;
	border-width: 2px;
}

/* Error message */
.error-message {
	padding: 4px 0px 4px 14px;
	margin-top: 4px;
	background-color: transparent;
	color: #ff6b6b;
	border-radius: 0px;
	font-size: 0.75rem;
	line-height: 1.43;
	text-align: left;
}

/* Actions container */
.actions-container {
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
	color: rgb(255, 255, 255);
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.00938em;
	text-align: center;
	box-sizing: inherit;
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	justify-content: center;
	padding-top: 16px;
}

/* Submit button */
.submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 8px 20px;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.75;
	letter-spacing: 0.02857em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.87);
	background-color: #ffffff;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	user-select: none;
	transition:
		background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
		box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
	background-color: #e0e0e0;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.submit-button:active {
	box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
	background-color: rgba(255, 255, 255, 0.3);
	color: rgba(0, 0, 0, 0.3);
	box-shadow: none;
	cursor: not-allowed;
}

/* Loading state */
.loading {
	pointer-events: none;
	opacity: 0.6;
}

/* Responsive */
@media (max-width: 600px) {
	.form-container {
		padding: 24px 16px;
	}

	.logo-svg {
		width: 100px;
		height: 100px;
	}

	.actions-container {
		gap: 8px;
	}
}
