* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.login-card {
	background: white;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 48px;
	width: 100%;
	max-width: 440px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.login-header {
	text-align: center;
	margin-bottom: 32px;
}

.login-title {
	font-size: 24px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 8px 0;
}

.login-subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	margin-bottom: 0;
}

.form-label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
	display: block;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: white;
	transition: all 0.2s ease;
	outline: none;
	height: 42px;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
	border-color: #F58426;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
	color: #9ca3af;
}

.form-group .relative {
	width: 100%;
	position: relative;
}

.form-group input[type="password"] {
	padding-right: 40px;
}

.form-group .relative button {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent !important;
	border: none !important;
	padding: 4px !important;
	width: 32px !important;
	height: 32px !important;
	min-width: unset !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease;
	border-radius: 4px !important;
}

.form-group .relative button:hover {
	opacity: 0.8;
	background: rgba(0, 0, 0, 0.05) !important;
}

.form-group .relative button svg {
	width: 18px;
	height: 18px;
	color: #6b7280;
}

.form-group .relative button .icon-open,
.form-group .relative button .icon-closed {
	display: flex;
	align-items: center;
	justify-content: center;
}

.form-group .relative button .hidden {
	display: none !important;
}

.form-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0;
	margin-bottom: 0;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #6b7280;
}

.checkbox-input {
	width: 16px;
	height: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	cursor: pointer;
	accent-color: #374151;
}

.checkbox-text {
	user-select: none;
}

.forgot-link {
	font-size: 14px;
	color: #F58426;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.forgot-link:hover {
	color: #DC7419;
	text-decoration: underline;
}

.oauth-link {
	text-decoration: none;
	width: 100%;
	display: block;
}

.login-btn,
.login-form button {
	margin-top: 4px !important;
	background: #2f2f2f !important;
	color: white !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px 20px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	width: 100% !important;
	height: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
}

.login-btn:hover,
.login-form button:hover {
	background: #1f1f1f !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-btn:active,
.login-form button:active {
	transform: translateY(0);
}

.microsoft-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.loading-text {
	display: inline-flex;
	align-items: center;
	gap: 0;
}

.loading-dots {
	display: inline-flex;
	align-items: center;
	gap: 0;
	margin-left: 2px;
}

.loading-dots .dot {
	animation: dotPulse 1.4s infinite ease-in-out;
	opacity: 0.3;
}

.loading-dots .dot:nth-child(1) {
	animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
	animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes dotPulse {
	0%, 60%, 100% {
		opacity: 0.3;
	}
	30% {
		opacity: 1;
	}
}

.oauth-btn span {
	display: inline-block;
}

.login-footer {
	margin-top: 24px;
	text-align: center;
}

.footer-text {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

.footer-link {
	color: #F58426;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.footer-link:hover {
	color: #DC7419;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.login-card {
		padding: 32px 24px;
	}

	.login-title {
		font-size: 22px;
	}

	.login-subtitle {
		font-size: 13px;
	}
}
