/* Authentication Pages Styles */
.auth-page {min-height: 100vh; display: flex; flex-direction: column; background: #fff;}

/* Main Content */
.auth-main {flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 20px 0px; vertical-align: middle;}
.auth-container { background: #fff; border-radius: 8px;  overflow: hidden;}
.auth-content {}
.auth-form {display: flex; flex-direction: column; gap: 20px; padding: 20px; width: 420px; max-width: 420px; border:1px solid #d5d9d9; margin:0 auto; border-radius:8px;}
.auth-form h2{font-weight: 400; font-size: 28px; line-height: 36px; text-align: left!important; margin:0px!important;}
.form-group {display: flex; flex-direction: column; gap: 4px; margin-bottom:20px;}
.form-group label {font-weight: 600; color: #333;}
.form-group input {padding: 7px 10px; border: 1px solid #888c8c; border-radius: 4px; font-size: 1rem; transition: border-color 0.3s;}
.form-group input:focus {border-color: #007185; outline: none;}

.auth-form.register-now{width: 560px; max-width: 560px;}
.auth-form.register-now form{display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;}
.auth-form.register-now .form-group{margin-bottom:0px;}
.auth-form.register-now .auth-btn{grid-column: 2 span; width: 100%; margin-top: 15px;}
.auth-form.register-now .auth-links{width: 100%; text-align: center; display: table; margin: 5px; grid-column: 2 span;}


/* Password Input Group */
.password-input-group {position: relative; display: flex; align-items: center;}
.password-input-group input {flex: 1; padding-right: 40px;}
.password-toggle {position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #666; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center;}
.password-toggle:hover {color: #007185;}
.password-toggle:focus {outline: none;}
.forgot{display:table; width:100%; text-align:right; padding-top:10px;}
.forgot a{color:#007185;}

/* Remember Me Checkbox Styles */
.remember-me-group {margin-bottom: 15px;}
.checkbox-label {display: flex;align-items: center;cursor: pointer;font-size: 14px;color: #333;user-select: none;}
.checkbox-label input[type="checkbox"] {position: absolute;opacity: 0;cursor: pointer;height: 0;width: 0;}
.checkmark {height: 18px;width: 18px;background-color: #fff;border: 2px solid #888c8c;border-radius: 3px;margin-right: 10px;position: relative;transition: all 0.3s ease;}
.checkbox-label:hover input ~ .checkmark {border-color: #007185;}
.checkbox-label input:checked ~ .checkmark {background-color: #007185;border-color: #007185;}
.checkmark:after {content: "";position: absolute;display: none;left: 5px;top: 2px;width: 4px;height: 8px;border: solid white;border-width: 0 2px 2px 0;transform: rotate(45deg);}
.checkbox-label input:checked ~ .checkmark:after {display: block;}

/* reCAPTCHA Styles */
.captcha-group {margin-bottom: 20px;}
.g-recaptcha {display: flex;justify-content: center;margin: 10px 0;}

/* Google Signup Styles */
.google-signup-section {margin-bottom: 0;}
.google-signup-btn {display: flex;align-items: center;justify-content: center;width: 100%;padding: 12px 16px;background: #fff;border: 1px solid #dadce0;border-radius: 4px;color: #3c4043;text-decoration: none;font-size: 14px;font-weight: 500;transition: all 0.2s ease;box-shadow: 0 1px 3px rgba(0,0,0,0.08);}
.google-signup-btn:hover {background: #f8f9fa;border-color: #dadce0;box-shadow: 0 2px 6px rgba(0,0,0,0.12);text-decoration: none;color: #3c4043;}
.google-signup-btn:active {background: #f1f3f4;box-shadow: 0 1px 2px rgba(0,0,0,0.16);}
.google-icon {width: 18px;height: 18px;margin-right: 12px;flex-shrink: 0;}

/* Apple Sign-In Styles */
.apple-signup-section {margin-bottom: 20px;}
.apple-signup-btn {display: flex;align-items: center;justify-content: center;width: 100%;padding: 12px 16px;background: #fff;border: 1px solid #dadce0;border-radius: 4px;color: #3c4043;text-decoration: none;font-size: 14px;font-weight: 500;transition: all 0.2s ease;box-shadow: 0 1px 3px rgba(0,0,0,0.08);}

.apple-signup-btn:hover {background: #f8f9fa;border-color: #dadce0;box-shadow: 0 2px 6px rgba(0,0,0,0.12);text-decoration: none;color: #3c4043;}
.apple-signup-btn:active {background: #f1f3f4;box-shadow: 0 1px 2px rgba(0,0,0,0.16);}
.apple-icon {width: 18px;height: 18px;margin-right: 12px;fill: #000;flex-shrink: 0;}
.divider {position: relative;text-align: center;margin: 20px 0 10px 0;}
.divider::before {content: '';position: absolute;top: 50%;left: 0;right: 0;height: 1px;background: #dadce0;}
.divider span {background: #fff;padding: 0 16px;color: #5f6368;font-size: 14px;position: relative;z-index: 1;}
.captcha-error {color: #dc3545;font-size: 0.875rem;margin-top: 8px;text-align: center;padding: 8px;background-color: #f8d7da;border: 1px solid #f5c6cb;border-radius: 4px;}

/* Invalid state */
.form-group input.is-invalid {border-color: #dc3545;}
.invalid-feedback {color: #dc3545; font-size: 0.875rem; margin-top: 4px;}
.auth-btn {background: #000; color: #fff; border: none; padding: 8px; border-radius: 100px; font-size: 15; font-weight: 400; cursor: pointer;  width:100%; transition: opacity 0.3s ease;}
.auth-btn:disabled {background: #666; cursor: not-allowed; opacity: 0.6;}
.auth-links {margin-top: 20px; font-size: 17px; border-top: 1px solid #d5d9d9; padding-top: 15px; text-align:center}
.auth-links a {color: #007185; text-decoration: underline; font-weight: 600;}
.auth-links a:hover {text-decoration: underline;}
.auth-links .or{position: relative; width: 100%; display: table; font-size: 15px; margin: 25px auto; background: #000; height: 1px;}
.auth-links .or span{position: absolute; padding: 0px 15px; background: #fff; top: 50%; margin-top: -11px; left: 50%; margin-left: -25px;}

/* Footer */
.auth-footer {background: #fff; padding: 20px 0; text-align: center; border-top: 1px solid #eee; color: #666; font-size: 0.9rem;}
.alert {margin: 0 auto; padding: 12px; border-radius: 8px; margin-bottom: 20px; width: 420px; border: 2px solid transparent; border-left: 12px solid transparent; background:transparent;  font-size:14px; line-height:normal}
.alert span{display:table; font-size:18px; font-weight:24px; font-weight:700; position:relative; padding-bottom:10px; padding-left: 25px;}
.alert-danger {color: #000; border-color: #cc0c39;}
.alert-danger span::before {content: ""; display: inline-block; width: 1em; height: 1em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23cc0c39' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; vertical-align: middle; margin-right:8px; position: absolute; left: 0px; top: 3px;}
.alert-success {color: #000; border-color: #0a3622;}
.alert-success span::before {content: ""; display: inline-block; width: 1em; height: 1em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230a3622' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; vertical-align: middle; margin-right:8px; position: absolute; left: 0px; top: 3px;}
.alert-info {color: #000; border-color: #9ec5fe;}
.alert-info span::before {content: ""; display: inline-block; width: 1em; height: 1em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%239ec5fe' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; vertical-align: middle; margin-right:8px; position: absolute; left: 0px; top: 3px;}

/* Responsive adjustments */
@media (max-width: 480px) {
	.auth-container {max-width: 100%;}
	.auth-content {padding: 20px;}
} 


@media screen and (min-width: 1024px) and (max-width: 1149px) {
	.auth-main{margin-top: 20px;}
} 
@media screen and (min-width: 991px) and (max-width: 1023px) {
	.auth-main{margin-top: 20px;}
} 
@media screen and (min-width: 768px) and (max-width: 990px) {
	.auth-main{margin-top: 20px;}
} 
@media screen and (min-width: 540px) and (max-width: 767px) {
	.auth-main{margin-top: 20px; margin-bottom: 20px;}
	.auth-content {padding: 10px;}
	.auth-form{max-width:100%;}
	.auth-form h2{font-size:24px;}
	.auth-form.register-now{width:320px; padding:10px;}
	.auth-form.register-now form{grid-template-columns: repeat(1, 1fr);}
	.auth-form.register-now .form-group{grid-column: 2 span; width:100%;}
	
	/* reCAPTCHA responsive adjustments */
	.g-recaptcha {transform: scale(0.9); transform-origin: center;}
} 
@media screen and (min-width: 320px) and (max-width: 539px) {
	.auth-main{display:unset;}
	.auth-content {padding: 10px;}
	.auth-form{max-width:100%;}
	.apple-signup-section{margin:0px;}
	.auth-form h2{font-size:24px;}
	.auth-form.register-now{width:100%; padding:10px;}
	.auth-form.register-now form{grid-template-columns: repeat(1, 1fr);}
	.auth-form.register-now .form-group{grid-column: 2 span; width:100%;}
	
	/* reCAPTCHA responsive adjustments */
	.g-recaptcha {transform: scale(0.8);transform-origin: center;}
	.alert{width:98%;}

	/* Google signup button mobile styles */
	.google-signup-btn {padding: 10px 12px;font-size: 13px;}
	.google-icon {width: 16px;height: 16px;margin-right: 8px;}
	.apple-signup-btn {padding: 10px 12px;font-size: 13px;}
	.apple-icon {width: 16px;height: 16px;margin-right: 8px;}
}