/* ===================================
   SIGNUP PAGE STYLES - financeai
   =================================== */

/* Reset and override base styles */
.signup-page * {
	box-sizing: border-box;
}

/* Hide any default headers */
.signup-page header,
.signup-page .navbar,
.signup-page .header,
.signup-page .navbar-standard,
.signup-page .navbar-standard .navbar-header,
.signup-page .navbar-standard .navbar-nav {
	display: none !important;
}

/* Override base template completely */
.signup-page {
	background: #0f172a !important;
	min-height: 100vh !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	padding: 1rem !important;
	position: relative !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	overflow-x: hidden !important;
	width: 100vw !important;
	height: 90vh !important;
}

/* Override any base template styles */
.signup-page .container,
.signup-page .main-container,
.signup-page .page-container,
.signup-page .page-content {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* Override body and html styles */
.signup-page body,
.signup-page html {
	background: #0f172a !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 100% !important;
	overflow-x: hidden !important;
}

/* Signup form container - Glassmorphism */
.signup-container {
	width: 100%;
	max-width: 600px;
	min-height: auto;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	box-shadow: 
		0 25px 50px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	padding: 2.5rem;
	position: relative;
	z-index: 2;
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin: 1rem auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
	overflow: visible;
	/* Fit within viewport and enable internal scroll on smaller screens */
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
}

/* Remove the top glow effect that was causing border visibility */
.signup-container::before {
	display: none;
}

.signup-container:hover {
	box-shadow: 
		0 35px 70px rgba(0, 0, 0, 0.4),
		0 0 0 1px rgba(255, 255, 255, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Form elements */
.signup-form {
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.form-group {
	margin-bottom: 1.5rem;
	text-align: left;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
	width: 100%;
}

.form-label.required::after {
	content: ' *';
	color: #ef4444;
	font-weight: 600;
}

.form-control {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	transition: all 0.3s ease;
	box-sizing: border-box;
	display: block;
	height: auto;
	line-height: 1.5;
}

.form-control:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
	background: rgba(255, 255, 255, 0.1);
}

.form-control:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.form-control.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.success {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-error {
	color: #ef4444;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	display: none;
	text-align: left;
	width: 100%;
}

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

/* Password toggle */
.password-toggle {
	position: absolute;
	right: 1rem;
	/* Center the toggle vertically relative to the password field */
	top: 0;
	bottom: 0;
	transform: none;
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	font-size: 0.875rem;
	user-select: none;
	z-index: 10;
}

.password-toggle:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* Ensure password fields have extra right-padding so the “Show” text aligns perfectly */
.form-group input[type="password"] {
	padding-right: 3rem;
}

/* Role & Country select dropdowns – cleaner look */
#role.form-control,
#country.form-control {
	appearance: none;	/* remove native arrow */
	background-image: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='14' height='14'%3E%3Cpath d='M5.516 7.548l4.484 4.484 4.484-4.484 1.432 1.432-5.916 5.916-5.916-5.916z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 0.65rem;
}

#role option,
#country option {
	color: #000; /* dark text for contrast*/
}

/* Dropdown (country, business type, etc.) scroll styling */
.dropdown-menu::-webkit-scrollbar {
	width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
	width: 100%;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	height: auto;
	line-height: 1.5;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.6s ease;
}

.btn:hover::before {
	left: 100%;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	color: white;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #2563eb, #1e40af);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
	transform: translateY(-2px);
}

.btn-secondary {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	color: white;
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	color: #3b82f6;
	border: 2px solid #3b82f6;
}

.btn-outline:hover {
	background: #3b82f6;
	color: white;
	transform: translateY(-2px);
}

/* Form grid */
.signup-form-grid {
	display: grid;
	gap: 1.5rem;
	width: 100%;
}

.form-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
	.form-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* Header section */
.signup-header {
	margin-bottom: 2rem;
	width: 100%;
	text-align: center;
	position: relative;
	z-index: 3;
}

.signup-icon {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.signup-icon::before {
	content: '👤';
	font-size: 1.5rem;
}

.signup-title {
	font-size: 2rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.5rem;
	text-align: center;
	width: 100%;
}

.signup-subtitle {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	line-height: 1.6;
	text-align: center;
	width: 100%;
}

/* Role selection */
.role-selection {
	margin-bottom: 2rem;
	width: 100%;
}

.role-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
	width: 100%;
}

.role-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
	width: 100%;
	box-sizing: border-box;
}

.role-option:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

.role-option.selected {
	border-color: #3b82f6;
	background: rgba(59, 130, 246, 0.1);
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.role-option input[type="radio"] {
	margin: 0;
	accent-color: #3b82f6;
}

.role-option label {
	cursor: pointer;
	font-weight: 500;
	color: rgba(8, 7, 7, 0.9);
	width: 100%;
}

/* Dropdown styles */
.dropdown {
	position: relative;
	width: 100%;
}

.dropdown-toggle {
	cursor: pointer;
	user-select: none;
	width: 100%;
	text-align: left;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	display: none;
	max-height: 200px;
	overflow-y: auto;
	width: 100%;
}

.dropdown-item {
	padding: 0.75rem 1rem;
	cursor: pointer;
	color: rgba(7, 6, 6, 0.8);
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	width: 100%;
	box-sizing: border-box;
}

.dropdown-item:last-child {
	border-bottom: none;
}

.dropdown-item:hover {
	background: rgba(59, 130, 246, 0.1);
	color: #030303;
}

/* Select wrapper */
.select-wrapper {
	position: relative;
	width: 100%;
}

.select-arrow {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.6);
	pointer-events: none;
}

/* Success message */
.signup-success-message {
	display: none;
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 1.5rem;
	border-radius: 16px;
	text-align: center;
	margin-bottom: 2rem;
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Error message */
.signup-error-message {
	display: none;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: white;
	padding: 1.5rem;
	border-radius: 16px;
	text-align: center;
	margin-bottom: 2rem;
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
	width: 100%;
}

/* Footer section */
.signup-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	width: 100%;
	text-align: center;
}

.signup-footer a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
}

.signup-footer a:hover {
	text-decoration: underline;
}

/* Override any base form styles */
.signup-page input,
.signup-page select,
.signup-page textarea {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 2px solid rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.signup-page input:focus,
.signup-page select:focus,
.signup-page textarea:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Responsive design */
@media (max-width: 768px) {
	.signup-page {
		padding: 0.5rem;
		align-items: flex-start !important;
	}
	
	.signup-container {
		padding: 2rem 1.5rem;
		margin: 0.5rem auto;
		border-radius: 20px;
	}
	
	.signup-title {
		font-size: 1.75rem;
	}
	
	.role-options {
		grid-template-columns: 1fr;
	}
	
	.signup-form-grid {
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.signup-page {
		padding: 0.25rem;
		align-items: flex-start !important;
	}
	
	.signup-container {
		padding: 1.5rem 1rem;
		margin: 0.25rem auto;
		border-radius: 16px;
	}
	
	.signup-title {
		font-size: 1.5rem;
	}
	
	.form-control {
		padding: 0.625rem 0.875rem;
	}
	
	.btn {
		padding: 0.625rem 1.25rem;
	}
	
	.signup-form-grid {
		gap: 0.75rem;
	}
	
	.form-group {
		margin-bottom: 1rem;
	}
}

@media (max-width: 360px) {
	.signup-container {
		padding: 1rem 0.75rem;
		border-radius: 12px;
	}
	
	.signup-title {
		font-size: 1.25rem;
	}
	
	.signup-subtitle {
		font-size: 0.875rem;
	}
} 