/*
 * auth.css — Login & Register Pages
 * 60-minutes.ma | RTL | Arabic
 */

.auth-page {
	direction: rtl;
	min-height: 80vh;
	background: #f5f6f8;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	font-family: 'Segoe UI', Tahoma, 'Arial Unicode MS', Arial, sans-serif;
}

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

.auth-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.09);
	padding: 2.5rem 2.25rem;
}

/* Logo */
.auth-logo {
	text-align: center;
	margin-bottom: 1.5rem;
}

.auth-logo__img {
	height: 52px;
	width: auto;
}

/* Headings */
.auth-title {
	font-size: 1.6rem;
	font-weight: 800;
	color: #222;
	text-align: center;
	margin: 0 0 0.35rem;
}

.auth-subtitle {
	font-size: 0.92rem;
	color: #777;
	text-align: center;
	margin: 0 0 1.75rem;
}

/* Alert */
.auth-alert {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
}

.auth-alert--error {
	background: #fff0f0;
	color: #c0392b;
	border: 1px solid #f5c6c6;
}

.auth-alert--success {
	background: #f0fff4;
	color: #27ae60;
	border: 1px solid #b2dfdb;
}

/* Form */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.auth-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: #333;
}

.auth-input {
	width: 100%;
	padding: 0.7rem 0.95rem !important;
	border: 1.5px solid #ddd;
	border-radius: 8px !important;
	font-size: 0.95rem !important;
	font-family: inherit;
	color: #222 !important;
	background: #fafafa;
	direction: rtl;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.auth-input:focus {
	outline: none;
	border-color: #ff6600;
	box-shadow: 0 0 0 3px rgba(255,102,0,0.12);
	background: #fff;
}

/* Password wrapper with toggle */
.auth-input-wrap {
	position: relative;
}

.auth-input-wrap .auth-input {
	padding-left: 2.75rem;
}

.auth-toggle-pwd {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	font-size: 0.95rem;
	padding: 0;
	transition: color 0.2s;
}

.auth-toggle-pwd:hover {
	color: #ff6600;
}

/* Remember me + forgot */
.auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.auth-checkbox {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.88rem;
	color: #555;
	cursor: pointer;
}

.auth-checkbox input {
	accent-color: #ff6600;
}

.auth-forgot {
	font-size: 0.86rem;
	color: #ff6600;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.auth-forgot:hover {
	color: #e85d04;
}

/* Submit button */
.auth-btn {
	width: 100%;
	padding: 0.8rem;
	background: #ff6600;
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	margin-top: 0.5rem;
}

.auth-btn:hover {
	background: #e85d04;
	transform: translateY(-1px);
}

/* Terms */
.auth-terms {
	font-size: 0.82rem;
	color: #888;
	text-align: center;
	margin: 0;
	line-height: 1.6;
}

.auth-terms a {
	color: #ff6600;
	text-decoration: none;
}

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

/* Switch link */
.auth-switch {
	text-align: center;
	font-size: 0.9rem;
	color: #666;
	margin: 1.5rem 0 0;
}

.auth-switch__link {
	color: #ff6600;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s;
}

.auth-switch__link:hover {
	color: #e85d04;
}

/* Responsive */
@media (max-width: 480px) {
	.auth-card {
		padding: 1.75rem 1.25rem;
		border-radius: 10px;
	}

	.auth-title {
		font-size: 1.35rem;
	}
}
