/* --- Base Page Styles --- */
body.login-page-bg {
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Arial, sans-serif;
	background: #1a1a1a;
	/* Dark background to make text pop */
	height: 100vh;
}

/* --- The Layout Wrapper --- */
.login-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
	box-sizing: border-box;
}

/* --- The Login Card --- */
.login-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(15px);
	padding: 40px;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	/* Desktop width */
	color: #ffffff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.subTitle1 {
	text-align: center;
	color: #C5A059;
	/* Gold accent */
	margin: 0 0 10px 0;
	letter-spacing: 2px;
}

.instruction-text {
	display: block;
	text-align: center;
	font-size: 14px;
	margin-bottom: 20px;
	opacity: 0.8;
}

/* --- Radio Buttons --- */
.method-selector {
	display: flex;
	justify-content: space-between;
	margin-bottom: 25px;
	background: rgba(0, 0, 0, 0.2);
	padding: 10px;
	border-radius: 8px;
}

.radio-item {
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
}

/* --- Input Fields --- */
.form-group {
	margin-bottom: 18px;
}

.form-group label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
	color: #C5A059;
}

.form-input {
	width: 100%;
	padding: 12px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 4px;
	font-size: 16px;
	color: #333;
	box-sizing: border-box;
	/* Crucial for mobile sizing */
}

.form-options {
	margin-bottom: 25px;
	font-size: 14px;
}

.checkbox-label {
	cursor: pointer;
}

/* --- Buttons --- */
.button-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.btn {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
	transition: transform 0.1s, filter 0.2s;
}

.btn:active {
	transform: scale(0.98);
}

.btn-login {
	background-color: #28a745;
	color: white;
}

.btn-register {
	background-color: #17a2b8;
	color: white;
}

.btn-back {
	background-color: #ffc107;
	color: #000;
}

/* --- Mobile Adjustments --- */
@media (max-width: 480px) {
	.login-card {
		padding: 25px;
		max-width: 100%;
	}

	.method-selector {
		flex-direction: column;
		gap: 10px;
	}
}


.ms-flex-row-small {
	display: flex;
	gap: 15px;
}

.ms-flex-row-small .form-group {
	flex: 1;
}

/* Ensure the card can grow slightly larger for the registration form if needed */
.login-card {
	max-width: 500px;
	/* Registration needs a bit more room */
	margin: 20px auto;
}

/* On Mobile, stack the name fields */
@media (max-width: 480px) {
	.ms-flex-row-small {
		flex-direction: column;
		gap: 0;
	}
}

.login-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: #1a1a1a;
	padding: 20px;
}

.login-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(15px);
	padding: 40px;
	border-radius: 12px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.subTitle1 {
	text-align: center;
	color: #C5A059;
	letter-spacing: 2px;
}

.form-input {
	width: 100%;
	padding: 12px;
	margin-top: 5px;
	border-radius: 4px;
	border: none;
	box-sizing: border-box;
	font-size: 16px;
}

.button-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
}

.btn {
	width: 100%;
	padding: 12px;
	border-radius: 4px;
	font-weight: bold;
	border: none;
	cursor: pointer;
	text-transform: uppercase;
}

.btn-info {
	background: #17a2b8;
	color: white;
}

.btn-back {
	background: #ffc107;
	color: black;
}

/* Layout Containers */
.account-page-container {
	padding: 20px;
	background: #f4f7f6;
	min-height: 100vh;
}

.account-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.orders-list-col {
	flex: 1;
	min-width: 350px;
}

.order-detail-col {
	flex: 1.5;
	min-width: 350px;
}

/* Section Headers */
.section-header {
	background: #d2f1e8;
	padding: 15px;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

/* Tables */
.table-responsive {
	overflow-x: auto;
}

.modern-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modern-table th {
	background: #15759B;
	color: white;
	padding: 12px;
	text-align: left;
}

.modern-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.clickable-table tbody tr {
	cursor: pointer;
	transition: background 0.2s;
}

.clickable-table tbody tr:hover {
	background: #f0f9ff;
}

.row-active {
	background: #e0f2fe !important;
	border-left: 4px solid #15759B;
}

/* Detail Card */
.detail-card {
	background: #edf4f4;
	border-radius: 8px;
	border: 1px solid #d1dbdb;
	padding: 20px;
}

.info-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
	border-bottom: 1px dashed #ccc;
	padding-bottom: 15px;
}

.financial-summary {
	background: white;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 15px;
}

/* Form Elements */
.account-form-card {
	background: white;
	padding: 25px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 15px;
}

.form-item {
	flex: 1;
	min-width: 200px;
}

.form-item label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	color: #555;
}

.form-control {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

/* Badges & Buttons */
.status-badge {
	padding: 5px 12px;
	border-radius: 4px;
	font-weight: bold;
	color: white;
}

.status-badge.info {
	background: #17a2b8;
}

.status-badge.success {
	background: #28a745;
}

.btn {
	padding: 8px 16px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.btn-info {
	background: #17a2b8;
	color: white;
}

.btn-danger {
	background: #dc3545;
	color: white;
}

.btn-info-outline {
	border: 1px solid #17a2b8;
	color: #17a2b8;
	background: transparent;
}

/* Mobile Optimization */
@media (max-width: 768px) {
	.account-grid {
		flex-direction: column;
	}

	.form-row {
		flex-direction: column;
	}

	.info-grid {
		flex-direction: column;
		gap: 5px;
	}
}