* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--background: hsl(0, 0%, 100%);
	--foreground: hsl(0, 0%, 3.9%);
	--muted: hsl(0, 0%, 96.1%);
	--muted-foreground: hsl(0, 0%, 45.1%);
	--border: hsl(0, 0%, 89.8%);
	--input: hsl(0, 0%, 89.8%);
	--primary: hsl(0, 0%, 9%);
	--primary-foreground: hsl(0, 0%, 98%);
	--radius: 0.5rem;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: var(--foreground);
	background-color: var(--background);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Page Layout */
.page-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background-color: var(--muted);
	padding: 1.5rem;
}

.content-wrapper {
	width: 100%;
	max-width: 28rem;
}

@media (min-width: 768px) {
	.page-container {
		padding: 2.5rem;
	}

	.content-wrapper {
		max-width: 48rem;
	}
}

/* Card Styles */
.login-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.card {
	background-color: var(--background);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-content {
	display: grid;
	padding: 0;
}

@media (min-width: 768px) {
	.card-content {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Form Section */
.form-section {
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.form-section {
		padding: 2rem;
	}
}

.form-inner {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.form-header h1 {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.form-header p {
	color: var(--muted-foreground);
	text-wrap: balance;
}

/* Form Group */
.form-group {
	display: grid;
	gap: 0.5rem;
}

.password-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

label {
	font-size: 0.875rem;
	font-weight: 500;
	display: block;
}

input[type='login'],
input[type='password'] {
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	border: 1px solid var(--input);
	border-radius: calc(var(--radius) - 2px);
	background-color: var(--background);
	transition: all 0.2s;
}

input[type='login']:focus,
input[type='password']:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.forgot-link {
	font-size: 0.875rem;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: var(--foreground);
	margin-left: auto;
}

.forgot-link:hover {
	text-decoration: none;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: calc(var(--radius) - 2px);
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.btn-primary {
	width: 100%;
	background-color: var(--primary);
	color: var(--primary-foreground);
}

.btn-primary:hover {
	background-color: hsl(0, 0%, 15%);
}

.btn-outline {
	background-color: transparent;
	border: 1px solid var(--border);
	color: var(--foreground);
}

.btn-outline:hover {
	background-color: var(--muted);
}

.btn svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Divider */
.divider {
	position: relative;
	text-align: center;
	font-size: 0.875rem;
}

.divider::after {
	content: '';
	position: absolute;
	inset: 0;
	top: 50%;
	z-index: 0;
	display: flex;
	align-items: center;
	border-top: 1px solid var(--border);
}

.divider span {
	position: relative;
	z-index: 10;
	background-color: var(--background);
	padding: 0 0.5rem;
	color: var(--muted-foreground);
}

/* Social Buttons */
.social-buttons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

/* Sign Up Text */
.signup-text {
	text-align: center;
	font-size: 0.875rem;
}

.signup-text a {
	text-decoration: underline;
	text-underline-offset: 4px;
	color: var(--foreground);
}

.signup-text a:hover {
	text-decoration: none;
}

/* Image Section */
.image-section {
	position: relative;
	display: none;
	background-color: #bbb;
}

@media (min-width: 768px) {
	.image-section {
		display: block;
	}
}

.image-section img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Terms Text */
.terms-text {
	text-align: center;
	font-size: 0.75rem;
	color: var(--muted-foreground);
	text-wrap: balance;
}

.terms-text a {
	text-decoration: underline;
	text-underline-offset: 4px;
	color: var(--muted-foreground);
}

.terms-text a:hover {
	color: var(--primary);
}
