﻿:root {
	--login-header-height: 6rem;
	--login-footer-height: 25px;
	--hird-yellow: #FFD700;
	--hird-blue-lighter: #62A6DF;
	--hird-blue-light: #005CA9;
}

body {
	height: -webkit-fill-available;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
}

body * {
	box-sizing: border-box;
}

body form {
	font-size: 16px;
	height: 100%;
}

html {
	height: -webkit-fill-available;
}

p {
	margin: 10px 0;
}

/* Main container - split screen layout */
#pnlLoginDialogsContainer {
    width: 100vw;
    height: 100vh;
    height: 100%;
    overflow: visible;
    position: relative;
    display: flex;
}

/* Top banner spanning entire width */
#pnlLoginDialogsContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #005CA9;
    z-index: 250;
}


#pnlLoginDialogsContainer::after {
    content: '';
    position: absolute;
    top: 10px; /* move it up so it sticks out above the bar */
    left: 30px;
    width: 260px;   /* control logo width */
    height: 140px;  /* taller than the bar */
    background: url(../images/hirdlogo.png) no-repeat left top;
    background-size: contain; /* scale logo nicely within the box */
    pointer-events: none;
    z-index: 251; /* above the blue bar */
}


/* Left image panel */
#pnlLoginDialogsContainer .image-side {
    flex: 1;
    background: url(../images/hird_building.jpg);
    background-size: cover;
	background-position: center;
}

/* Right content panel */
#pnlLoginDialogsContainer .content-side {
    flex: 1;
    position: relative;
    z-index: 200;
}

/* Left side - Login form with blue gradient */
#loginDialogsWrapper {
	position: relative;
	width: 100%;
	height: 100%;
	background: linear-gradient(270deg, var(--hird-blue-lighter) 0%, var(--hird-blue-light) 80%);
	display: flex;
	flex-direction: column;
	padding: 2rem 3rem;
	padding-top: calc(2rem + 60px);
	overflow-y: visible;
	z-index: 1;
}

/* Footer text on right side */
body::after {
	content: 'Day One Technologies Ltd';
	position: fixed;
	bottom: 20px;
	right: 20px;
	color: white;
	font-size: 0.75rem;
	z-index: 10;
	pointer-events: none;
}

#logindialogouter {
	opacity: 0.5;
}

#loginHeader, #loginFooter {
	display: none;
}

/* HIRD Logo styling */
#loginLogo {
	display: block;
	height: auto;
	width: auto;
	margin-bottom: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
}

#loginLogo::before {
	content: '';
	display: none;
}

/* Welcome section */
#loginWelcome {
	margin-bottom: 2rem;
	color: white;
}

#loginWelcome h2 {
	margin: 0 0 0.8rem 0;
	font-size: 1rem;
	font-weight: bolder;
	color: white;
	line-height: 1.3;
}

/* Description text - will be added via JavaScript or can be in HTML */
#loginWelcome p {
	font-size: 0.6rem;
	color: rgba(255, 255, 255, 0.9);
	margin-top: 0.5rem;
	line-height: 1.4;
}

/* Login form tabs */
#loginFormTabs {
	margin-bottom: 1.5rem;
	display: flex;
	gap: 1.5rem;
	padding: 0;
}

#loginFormTabs .login-form-tab {
	display: inline-block;
	font-weight: normal;
	color: white;
	text-transform: capitalize;
	padding: 0.3rem 0;
	font-size: 0.95rem;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
	background: transparent;
}

#loginFormTabs .login-form-tab:hover {
	border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

#loginFormTabs .login-form-tab.selected {
	border-bottom: 2px solid white;
	font-weight: bold;
	pointer-events: none;
}

/* Form content */
#loginForms, #loginTabContent, #loginWelcome, #pnlLoginLanguage {
	width: 100%;
}

#loginForms, #pnlShop {
	max-height: calc(100vh - 400px);
	overflow-y: auto;
	padding-left: 5px;
	padding-right: 5px;
}

#loginForms select {
	width: 30%;
}

#loginTabContent {
	background: transparent;
}

.login-tab-content {
	display: none;
}

.login-tab-content input[type="text"],
.login-tab-content input[type="password"],
.login-tab-content input[type="email"] {
	width: 80%;
	font-size: 0.85rem;
	padding: 8px 10px;
	border: none;
	border-radius: 4px;
	background: white;
	color: #333;
	margin-top: 5px;
}

.login-tab-content input:focus {
	outline: 2px solid var(--hird-yellow);
	outline-offset: 2px;
}

/* Form lines */
.formline {
	margin-bottom: 1.2rem;
}

.formlabel {
	color: white;
	padding: 0;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	font-weight: normal;
}

.formvalue {
	width: 100%;
	color: white;
}

/* Remember me and forgot password */
.formline {
	position: relative;
}

.formline .formlabel input[type="checkbox"] {
	width: auto;
	margin-right: 0.5rem;
}

/* Style for remember me row */
.formline.remember-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.formline.remember-row .formlabel {
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: white;
	font-size: 0.9rem;
}

/* Container for button and forgot password link - align with input fields */
.login-tab-content > div:last-child {
	width: 80%;
}

#lnkForgottonPassword {
	margin: 0;
	text-align: right;
}

#lnkForgottonPassword a {
	cursor: pointer;
	color: white;
	text-decoration: underline;
	font-size: 0.9rem;
}

#lnkForgottonPassword a:hover {
	text-decoration: none;
}

/* Login button */
#btnLogin, #btnRegister, #btnShop {
	width: auto;
	min-width: 150px;
	background: var(--hird-yellow);
	border: none;
	border-radius: 999px;
	padding: 1px 0.5rem;
	text-transform: uppercase;
	color: #005CA9;
	font-weight: bold;
	font-size: 0.9rem;
	cursor: pointer;
	margin-top: 0.5rem;
	transition: background 0.3s ease;
	display: inline-block;
}

#btnLogin:hover, #btnRegister:hover {
	background: #ffed4e;
}

#btnLogin span, #btnRegister span {
	color: #005CA9;
}

/* Privacy Policy footer */
#loginDialogsWrapper::after {
	content: 'Privacy Policy';
	position: absolute;
	bottom: 20px;
	left: 3rem;
	color: white;
	font-size: 0.75rem;
	text-decoration: underline;
	cursor: pointer;
	z-index: 10;
}

#loginDialogsWrapper::after:hover {
	text-decoration: none;
}

/* Error messages */
.loginError, .login-error {
	color: #ffcccc;
	background: rgba(255, 0, 0, 0.2);
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

/* Registration code login */
#pnlRegistrationCodeLogin {
	display: none;
}

/* Language selector */
#pnlLoginLanguage {
	display: none;
}

#pnlLoginLanguage .formline {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

#pnlLoginLanguage .formlabel {
	margin-right: 10px;
	color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	#pnlLoginDialogsContainer {
		flex-direction: column;
	}
	
	#loginDialogsWrapper {
		width: 100%;
		height: auto;
		min-height: 100vh;
	}
	
	#pnlLoginDialogsContainer::after {
		display: none;
	}
	
	#pnlLoginDialogsContainer::before {
		display: none;
	}
}

/* Additional styling for form elements */
#loginFormsWrapper {
	width: 100%;
	max-width: 100%;
	padding: 10% 0;
}

#loginContentWrapper {
	padding: 0;
	width: 100%;
}

/* Ensure inputs are styled correctly */
input[type="text"],
input[type="password"],
input[type="email"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* Checkbox styling */
input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--hird-yellow);
}

/* Select dropdown styling */
select {
	width: 100%;
	font-size: 1rem;
	padding: 12px;
	border: none;
	border-radius: 4px;
	background: white;
	color: #333;
	margin-top: 5px;
}

select:focus {
	outline: 2px solid var(--hird-yellow);
	outline-offset: 2px;
}
