/*
Theme Name: Hybrid by Madan
Author: codemadan
Description: A custom WordPress theme with registration and login functionality
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hybrid-by-madan
*/

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	color: #1F3813;
	background-color: #fff;
	direction: rtl;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Registration Page Styles */
.register-page {
	background-color: #fff;
	min-height: 100vh;
	padding: 40px 20px;
}

.register-container {
	max-width: 800px;
	margin: 0;
	margin-right: auto;
	background: #fff;
}

.register-header {
	text-align: right;
	margin-bottom: 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}


.strawberry-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.breadcrumb {
	font-size: 30pt;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin: 0;
}

.breadcrumb-link {
	color: #1F3813;
	text-decoration: none;
}

.breadcrumb-link:hover {
	text-decoration: underline;
}

.breadcrumb-link.breadcrumb-active {
	color: #FF002B;
	font-weight: 600;
}

.breadcrumb-separator {
	color: #1F3813;
	margin: 0 5px;
}

/* Form Sections */
.form-section {
	margin-bottom: 40px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	flex-direction: row-reverse;
}

.section-title {
	font-size: 21pt;
	font-weight: 700;
	color: #1F3813;
	margin: 0;
	text-align: right;
}

.form-group {
	margin-bottom: 20px;
	position: relative;
}

.password-row,
.name-row,
.address-row,
.city-row {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.password-row .form-group,
.name-row .form-group,
.address-row .form-group,
.city-row .form-group {
	flex: 1;
	margin-bottom: 0;
}

.form-group label {
	position: absolute;
	top: 12px;
	right: 12px;
	font-weight: 400;
	color: #1F3813;
	font-size: 14.05pt;
	pointer-events: none;
	transition: all 0.3s;
	background-color: #fff;
	padding: 0 4px;
	z-index: 1;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
	width: 100%;
	padding: 12px;
	padding-top: 28px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 18.06pt;
	transition: border-color 0.3s;
	background-color: #fff;
	text-align: right;
}

.form-group input::placeholder {
	color: transparent;
}

.form-group input:focus {
	outline: none;
	border-color: #FF002B;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
	top: -8px;
	font-size: 12pt;
	color: #1F3813;
}

.form-group.checkbox-group {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
}

.form-group.checkbox-group input[type="checkbox"] {
	width: auto;
	margin: 0;
	cursor: pointer;
}

.form-group.checkbox-group label {
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.login-link-group {
	margin: 0;
	font-size: 14px;
	color: #1F3813;
	line-height: 1.6;
}

.login-question {
	margin-left: 5px;
}

.login-link {
	color: #FF002B;
	text-decoration: none;
	font-weight: 500;
}

.login-link:hover {
	text-decoration: underline;
	color: #cc0022;
}

/* Form Actions */
.form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #eee;
	flex-direction: row-reverse;
}

.continue-btn {
	background-color: #FF002B;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 14px 30px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
	flex: 0 0 auto;
}

.continue-btn:hover {
	background-color: #cc0022;
}

.continue-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.back-link {
	color: #FF002B;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.back-link:hover {
	text-decoration: underline;
	color: #cc0022;
}

.back-arrow {
	font-size: 14px;
	font-weight: 500;
}

/* Login Modal Popup Styles */
.login-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(74, 74, 74, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
	overflow-y: auto;
}

.login-modal-overlay.show {
	display: flex;
}

.login-modal {
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 100%;
	margin: auto;
	max-height: 90vh;
	overflow-y: auto;
}

.login-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: background-color 0.3s;
}

.login-close:hover {
	background-color: #f5f5f5;
}

.login-close svg {
	width: 20px;
	height: 20px;
}

.login-header {
	text-align: right;
	margin-bottom: 30px;
}

.strawberry-icon-login {
	display: inline-block;
	margin-bottom: 15px;
}

.strawberry-icon-login img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.login-title {
	font-size: 21pt;
	font-weight: 400;
	color: #1F3813;
	margin: 0;
}

.login-submit-btn {
	width: 100%;
	background-color: #FF002B;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 14px;
	font-size: 18.06pt;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
	margin-top: 20px;
}

.login-submit-btn:hover {
	background-color: #cc0022;
}

.login-submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.forgot-password-link {
	text-align: right;
	margin-top: 10px;
	margin-bottom: 20px;
}

.forgot-link {
	color: #1F3813;
	text-decoration: none;
	font-size: 14.05pt;
}

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

/* Error Messages */
.error-message {
	color: #FF002B;
	font-size: 14px;
	margin-top: 5px;
	display: none;
	text-align: right;
}

.error-message.show {
	display: block;
}

.field-error {
	border-color: #FF002B !important;
}

/* Success/Error Messages */
.form-message {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	text-align: right;
	display: none;
}

.form-message.show {
	display: block;
}

.form-message.success {
	background-color: #00a32a;
	color: #fff;
}

.form-message.error {
	background-color: #FF002B;
	color: #fff;
}

/* Loading Indicator */
.loading-indicator {
	display: none;
	text-align: right;
	margin: 20px 0;
}

.loading-indicator .spinner {
	margin-right: 0;
	margin-left: auto;
}

.loading-indicator.show {
	display: block;
}

.spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #FF002B;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

/* Full Page Loader Overlay */
.full-page-loader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.95);
	z-index: 99999;
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	direction: rtl;
}

.full-page-loader.show {
	display: flex;
}

.full-page-loader .loader-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #FF002B;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

.full-page-loader .loader-text {
	color: #1F3813;
	font-size: 18.06pt;
	font-weight: 500;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Auth Buttons Styles */
.hybrid-auth-buttons {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.hybrid-auth-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.hybrid-login-btn {
	background-color: #FF002B;
	color: #fff;
}

.hybrid-login-btn:hover {
	background-color: #cc0022;
	color: #fff;
}

.hybrid-register-btn {
	background-color: #1F3813;
	color: #fff;
}

.hybrid-register-btn:hover {
	background-color: #15280d;
	color: #fff;
}

/* Logged In Status */
.hybrid-auth-status {
	padding: 15px;
	background-color: #f5f5f5;
	border-radius: 6px;
	margin: 10px 0;
}

.hybrid-auth-status .auth-message {
	margin: 0;
	color: #1F3813;
	font-size: 16px;
}

.hybrid-auth-status .logout-link {
	color: #FF002B;
	text-decoration: none;
	font-weight: 600;
}

.hybrid-auth-status .logout-link:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.register-container {
		padding: 20px;
	}
	
	.login-modal {
		padding: 30px 20px;
		max-height: 95vh;
	}
	
	.form-actions {
		flex-direction: column;
		gap: 15px;
	}
	
	.continue-btn {
		width: 100%;
	}
	
	.back-link {
		text-align: center;
		display: block;
	}
	
	.hybrid-auth-buttons {
		flex-direction: column;
	}
	
	.hybrid-auth-btn {
		width: 100%;
	}
}
