/* ===========================
   Sign In Page Styles
   =========================== */

/* ===== RESET & BASE STYLES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	background: #f8f9fa;
	color: #333;
	line-height: 1.6;
	height: 100vh;
	overflow: hidden;
}

#login_logo {
	height:45px;
	width:200px;
	margin-bottom:30px;
	background-image:url('https://d1ycnnluvtiije.cloudfront.net/site_images/ad_source_logo.webp');
	background-repeat:no-repeat;
	margin-left:auto;
	margin-right:auto;
	background-position:center center;
	background-size:contain;	
}

/* ===== CONTAINER LAYOUT ===== */
.signin-container {
	display: flex;
	height: 100vh;
}

/* ===== IMAGE SECTION (LEFT SIDE) ===== */
.image-section {
	flex: 1;
	position: relative;
	overflow: hidden;
}

.background-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:url('https://d1ycnnluvtiije.cloudfront.net/site_images/lady.webp');
	background-repeat:no-repeat;
	background-position: center bottom;
	background-size:cover;
	z-index: 1;
}

.brand-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.brand {
	display: flex;
	align-items: center;
	gap: 15px;
	height: 100px;
	width: 210px;
	margin-left: auto;
	margin-right: auto;
	background-image: url(https://d1ycnnluvtiije.cloudfront.net/site_images/transparent_white.webp);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	color: white;
}

.brand-icon {
	font-size: 48px;
}

.brand-name {
	font-size: 48px;
	font-weight: 600;
	letter-spacing: -1px;
}

/* ===== FORM SECTION (RIGHT SIDE) ===== */
.form-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 60px;
	overflow-y: auto;
}

.form-container {
	max-width: 400px;
	width: 100%;
	margin: auto 0;
}

.form-header {
	margin-bottom: 10px;
}

.form-header h1,
.form-header h2 {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
}

.form-header p {
	font-size: 16px;
	color: #666;
}

/* ===== FORM STYLES ===== */
.signin-form {
	margin-bottom: 30px;
}

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

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 20px;
	color: #999;
	font-size: 18px;
	pointer-events: none;
}

.signin-form input[type="email"],
.signin-form input[type="password"],
.signin-form input[type="text"],
.signin-form input[type="url"] {
	width: 100%;
	padding: 16px 20px 16px 50px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 16px;
	transition: all 0.3s;
	background: #fafafa;
}

.signin-form select {
	width: 100%;
	padding: 16px 20px 16px 50px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 16px;
	transition: all 0.3s;
	background: #fafafa;
	cursor: pointer;
	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='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
}

.signin-form input:focus,
.signin-form select:focus {
	outline: none;
	border-color: #1976d2;
	background: white;
	box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.signin-form input::placeholder {
	color: #999;
}

.signin-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.signup-email {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f8f9fa;
	padding: 12px 20px;
	border-radius: 8px;
	margin-top: 15px;
	color: #666;
	font-size: 14px;
}

.signup-email i {
	color: #999;
}

.signup-email span {
	font-weight: 500;
	color: #333;
}

.toggle-password {
	position: absolute;
	right: 20px;
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 16px;
	padding: 5px;
	transition: color 0.3s;
}

.toggle-password:hover {
	color: #333;
}

/* ===== FORM OPTIONS ===== */
.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #666;
	font-size: 14px;
}

.remember-me input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #1976d2;
}

.forgot-password {
	color: #1976d2;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.3s;
}

.forgot-password:hover {
	color: #1565c0;
	text-decoration: underline;
}

/* ===== SIGN IN BUTTON ===== */
.signin-btn {
	width: 100%;
	padding: 16px 24px;
	background: #333;
	color: white;
	border: none;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.signin-btn:hover {
	background: #000;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.signin-btn:active {
	transform: translateY(0);
}

.signin-btn i {
	transition: transform 0.3s;
}

.signin-btn:hover i {
	transform: translateX(5px);
}

/* ===== DIVIDER ===== */
.divider {
	text-align: center;
	margin: 30px 0;
	position: relative;
}

.divider::before,
.divider::after {
	content: '';
	position: absolute;
	top: 50%;
	width: calc(50% - 60px);
	height: 1px;
	background: #e0e0e0;
}

.divider::before {
	left: 0;
}

.divider::after {
	right: 0;
}

.divider span {
	color: #999;
	font-size: 14px;
	padding: 0 10px;
	background: white;
	position: relative;
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
}

.social-btn {
	flex: 1;
	padding: 12px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	background: white;
	color: #666;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s;
}

.social-btn:hover {
	border-color: #333;
	background: #fafafa;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn i {
	font-size: 18px;
}

.social-btn.google i {
	color: #ea4335;
}

.social-btn.microsoft i {
	color: #00a4ef;
}

/* ===== SIGNUP LINK ===== */
.signup-link {
	text-align: center;
	color: #666;
	font-size: 14px;
}

.signup-link a {
	color: #1976d2;
	text-decoration: underline;
	font-weight: 500;
	transition: color 0.3s;
}

.signup-link a:hover {
	color: #1565c0;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
	display: flex;
	justify-content: center;
	gap: 30px;
	padding-top: 30px;
	margin-top: auto;
}

.footer-links a {
	color: #999;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: #333;
	text-decoration: underline;
}

/* ===== LOADING STATE ===== */
.signin-btn.loading {
	pointer-events: none;
	opacity: 0.8;
}

.signin-btn.loading span {
	visibility: hidden;
}

.signin-btn.loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* ===== ERROR STYLES ===== */
.form-group.error input {
	border-color: #f44336;
}

.error-message {
	color: #f44336;
	font-size: 13px;
	margin-top: 5px;
	display: none;
}

.form-group.error .error-message {
	display: block;
}

/* ===== SUCCESS STYLES ===== */
.success-message {
	background: #4CAF50;
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	text-align: center;
	display: none;
}

.success-message.show {
	display: block;
	animation: slideDown 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
	animation: shake 0.5s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
	.form-section {
		padding: 40px;
	}
}

@media (max-width: 768px) {
	
	.image-section {
		display:none;
	}
	.signin-container {
		flex-direction: column;
	}
	
	.image-section {
		height: 200px;
		flex: none;
	}
	
	.brand-overlay {
		top: 50%;
	}
	
	.brand-logo-signin {
		max-width: 200px;
	}
	
	.form-section {
		padding: 30px 20px;
	}

	.form-header h1,
	.form-header h2 {
		font-size: 24px;
	}
	
	.social-login {
		flex-direction: column;
	}
	
	.footer-links {
		flex-wrap: wrap;
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.image-section {
		height: 150px;
	}
	
	.form-section {
		padding: 20px;
	}

	.form-header h1,
	.form-header h2 {
		font-size: 20px;
	}

	.form-header p {
		font-size: 14px;
	}
}