/* IsiBatre SaaS - Auth Styles */

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

:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--success: #10b981;
	--warning: #f59e0b;
	--error: #ef4444;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--radius: 12px;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d47a1 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.auth-container {
	width: 100%;
	max-width: 420px;
}

.auth-card {
	background: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 40px;
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--gray-900);
	margin-bottom: 24px;
}

.logo svg {
	width: 32px;
	height: 32px;
	color: var(--primary);
}

.auth-header h1 {
	font-size: 24px;
	color: var(--gray-900);
	margin-bottom: 8px;
}

.auth-header p {
	color: var(--gray-500);
	font-size: 14px;
}

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

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group label {
	font-size: 14px;
	font-weight: 500;
	color: var(--gray-700);
}

.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='tel'],
.form-group input[type='text'] {
	padding: 12px 16px;
	border: 1px solid var(--gray-300);
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s;
}

.form-group input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
	color: var(--gray-400);
}

.password-input {
	position: relative;
}

.password-input input {
	width: 100%;
	padding-right: 48px;
}

.toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--gray-400);
	cursor: pointer;
	padding: 4px;
}

.toggle-password:hover {
	color: var(--gray-600);
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: var(--gray-600);
	cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--primary);
}

.checkbox-label a {
	color: var(--primary);
	text-decoration: none;
}

.checkbox-label a:hover {
	text-decoration: underline;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-primary {
	background: var(--primary);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-dark);
}

.btn-primary:disabled {
	background: var(--gray-300);
	cursor: not-allowed;
}

.btn-block {
	width: 100%;
}

.spinner {
	width: 20px;
	height: 20px;
	border: 2px solid transparent;
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.alert-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.alert-success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.auth-footer {
	text-align: center;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--gray-200);
}

.auth-footer p {
	font-size: 14px;
	color: var(--gray-500);
}

.auth-footer a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
}

.auth-footer a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.auth-card {
		padding: 24px;
	}
}
