/* Auth (Giriş / Kayıt / Şifre) - Kurumsal ve sadeleşmiş stil */

:root {
	--auth-bg: #f5f5f5;
	--auth-left: #f5f5f5;
	--auth-right: #f5f5f5;
	--auth-text: #0f172a;
	--auth-muted: #64748b;
	--auth-input-border: #e2e8f0;
	--auth-divider: #e2e8f0;
}

/* Sadece auth sayfalarında uygulanacak şekilde scope ediyoruz */
body:has(.auth-page-wrapper) {
	background: var(--auth-bg);
}

body:has(.auth-page-wrapper) .mobil_ara {
	display: none !important;
}

.auth-page-wrapper {
	min-height: 100vh;
	display: flex;
	background: var(--auth-bg);
	position: relative;
	overflow: hidden;
	padding-bottom: 0;
}

/* Çok hafif bir arka plan deseni */
.auth-page-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
	background-size: 60px 60px;
	opacity: 0.5;
	pointer-events: none;
}

.auth-left-panel {
	flex: 1;
	background: var(--auth-left);
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.auth-left-content {
	position: relative;
	z-index: 2;
}

.auth-logo-area {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 60px;
}

.auth-logo-icon {
	width: 50px;
	height: 50px;
	background: #fff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	padding: 8px;
	box-sizing: border-box;
}

.auth-logo-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.auth-logo-text h1 {
	color: var(--auth-text);
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.auth-logo-text p {
	color: var(--auth-muted);
	font-size: 13px;
	margin: 4px 0 0 0;
}

.auth-home-button {
	position: absolute;
	top: 30px;
	right: 30px;
	background: #f8fafc;
	border: 1px solid var(--auth-input-border);
	color: var(--auth-text);
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}

.auth-home-button:hover {
	background: #f1f5f9;
	color: var(--auth-text);
}

.auth-welcome-content h2 {
	color: var(--auth-text);
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 25px 0;
	line-height: 1.2;
}

.auth-welcome-content p {
	color: var(--auth-muted);
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
	max-width: 450px;
}

.auth-right-panel {
	flex: 1;
	background: var(--auth-right);
	padding: 60px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.auth-form-container {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.auth-form-header {
	text-align: center;
	margin-bottom: 35px;
}

.auth-form-header h2 {
	color: var(--auth-text);
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 10px 0;
}

.auth-form-header p {
	color: var(--auth-muted);
	font-size: 15px;
	margin: 0;
}

.auth-form .form-group {
	margin-bottom: 25px;
}

.auth-form label {
	color: var(--auth-text);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
	display: block;
}

.auth-form label span {
	color: #FCA5A5;
	margin-left: 3px;
}

.auth-form .input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.auth-form .input-icon {
	display: none !important;
}

.auth-form .form-control,
.auth-form select.form-control,
.auth-form textarea.form-control {
	width: 100%;
	background: #fff;
	border: 2px solid var(--auth-input-border);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
	color: #2D3748;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.auth-form textarea.form-control {
	min-height: 100px;
	resize: vertical;
	padding-top: 14px;
}

.auth-form select.form-control {
	padding-left: 16px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.auth-form .form-control:focus {
	border-color: var(--main-color, #4398f4);
	outline: none;
	box-shadow: 0 0 0 3px rgba(67, 152, 244, 0.12);
}

.auth-form .checkbox {
	margin-bottom: 30px;
}

.auth-form .checkbox label {
	color: var(--auth-muted);
	font-weight: 400;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
}

.auth-form .checkbox input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	cursor: pointer;
	accent-color: var(--main-color, #4398f4);
	flex-shrink: 0;
	margin: 0 !important;
	position: relative !important;
	-moz-appearance: checkbox !important;
	appearance: checkbox !important;
	-webkit-appearance: checkbox !important;
}

.auth-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--main-color, #4398f4) 0%, #141c33 100%);
	color: #fff;
	border: none;
	padding: 16px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 15px rgba(67, 152, 244, 0.22);
}

.auth-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(67, 152, 244, 0.28);
}

.auth-btn:active:not(:disabled) {
	transform: translateY(0);
}

.auth-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

body:has(.auth-page-wrapper) .alert {
	border-radius: 10px;
	padding: 15px 20px;
	margin-bottom: 20px;
	border: 1px solid rgba(239, 68, 68, 0.35);
	background: rgba(254, 242, 242, 0.95);
	font-size: 14px;
	color: #b91c1c;
}

body:has(.auth-page-wrapper) .alert-success {
	background: rgba(240, 253, 244, 0.95);
	color: #166534;
	border-color: rgba(34, 197, 94, 0.35);
}

.auth-divider {
	text-align: center;
	margin: 25px 0;
	position: relative;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 45%;
	height: 1px;
	background: var(--auth-divider);
}

.auth-divider::before {
	left: 0;
}

.auth-divider::after {
	right: 0;
}

.auth-divider span {
	background: var(--auth-right);
	padding: 0 15px;
	color: #718096;
	font-size: 13px;
	position: relative;
}

.social-login {
	margin-top: 20px;
}

.social-btn {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	margin-bottom: 12px;
	border: 2px solid var(--auth-divider);
	background: #f8fafc;
	color: var(--auth-text);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
}

.social-btn:hover {
	border-color: var(--main-color, #4398f4);
	background: rgba(67, 152, 244, 0.08);
	color: var(--auth-text);
}

.auth-links {
	margin-top: 25px;
	text-align: center;
}

.auth-links a {
	color: var(--main-color, #4398f4);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
	display: inline-block;
	margin: 0 10px;
}

.auth-links a:hover {
	color: #2b74c8;
	text-decoration: underline;
}

.auth-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--auth-divider);
}

.auth-tabs .auth-tab {
	padding: 12px 20px;
	color: var(--auth-muted);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 15px;
	text-decoration: none;
}

.auth-tabs .auth-tab:hover {
	color: var(--auth-text);
}

.auth-tabs .auth-tab.active {
	color: var(--auth-text);
	border-bottom-color: var(--main-color, #4398f4);
	font-weight: 600;
}

.auth-tab-pane {
	display: none;
}

.auth-tab-pane.active {
	display: block;
}

/* Kayıt sayfası: Kurumsal alan sadeleştirme */
#kurumsal {
	background: rgba(67, 152, 244, 0.05);
	padding: 20px;
	border-radius: 10px;
	margin-top: 15px;
	border: 2px dashed var(--auth-divider);
}

#kurumsal .form-group {
	margin-bottom: 15px;
}

#kurumsal .row {
	margin-left: -8px;
	margin-right: -8px;
}

#kurumsal .row [class*="col-"] {
	padding-left: 8px;
	padding-right: 8px;
}

@media (max-width: 992px) {
	.auth-page-wrapper {
		flex-direction: column;
	}
	.auth-left-panel {
		padding: 40px 30px;
		min-height: auto;
		order: 2;
	}
	.auth-left-content {
		text-align: center;
	}
	.auth-welcome-content h2 {
		font-size: 32px;
	}
	.auth-welcome-content p {
		max-width: 100%;
	}
	.auth-right-panel {
		padding: 40px 30px;
		order: 1;
	}
	.auth-logo-area {
		margin-bottom: 40px;
		justify-content: center;
	}
	.auth-home-button {
		position: relative;
		top: auto;
		right: auto;
		margin-bottom: 20px;
		display: inline-block;
	}
}

@media (max-width: 768px) {
	.auth-left-panel,
	.auth-right-panel {
		padding: 30px 20px;
	}
	.auth-welcome-content h2 {
		font-size: 28px;
	}
	.auth-form-header h2 {
		font-size: 28px;
	}
}

/* Footer spacing sadece auth sayfaları için */
.auth-page-wrapper + footer {
	margin-top: 0 !important;
	padding-top: 40px !important;
	background: #f5f5f5 !important;
	border-top: 1px solid var(--auth-divider);
}

