/* ============================================
   GLOBAL STYLES
   ============================================ */
/* DM Sans font family for entire page */
body {
    font-family: 'DM Sans', sans-serif;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
/* Main container with full viewport dimensions and padding */
.main-container {
    height: 100vh;
    width: 100vw;
    padding: 0.75rem;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1255a1d6 0%, #1254a1 100%), url('../../Common-Components/asserts/Assetbg 1.png');
    background-size: cover;
}

/* ============================================
   GLASSY CONTAINER
   ============================================ */
/* Container with glassmorphism effect - 100% width and height with padding */
.glassy-container {
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
    
    /* Glassmorphism effect */
    background: linear-gradient(rgba(255, 255, 255, 0.2)0%, rgba(255, 255, 255, 0.08)50%, rgba(255, 255, 255, 0.3)100%);
    backdrop-filter: url(#glass);
    border: 1px solid rgba(213, 213, 213, 0.54);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 2.2);
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(83, 83, 83, 0.37);
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
/* Main wrapper with 100% height and width of parent */
.main-wrapper {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 #5656561a;
}

/* ============================================
   LEFT SECTION
   ============================================ */
/* Left column styling */
.login-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    position: relative;
    z-index: 1;
}

/* Inner container with gray background */
.inner-container {
    width: 100%;
    height: 100%;
    background: #ffffff;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

/* Logo image styling - positioned at top left */
.logo-image {
    position: absolute;
    top: 2rem;
    left: 2rem;
    max-width: 140px;
    height: auto;
    z-index: 10;
}

/* Centered content container for heading and paragraph */
.centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 100%;
    max-width: 500px;
    padding: 0 2rem;
}

/* Logo icon above heading */
.logo-icon {
    width: 100px;
    height: auto;
    margin-bottom: 0.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Centered heading in login section */
.login-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin: 0 0 0 0;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.04em;
}

/* Centered paragraph below heading */
.login-paragraph {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    font-family: 'DM Sans', sans-serif;
}

/* ============================================
   LOGIN FORM STYLES
   ============================================ */
/* Login form container - left aligned */
.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

/* Form group spacing */
.login-form .form-group {
    margin-bottom: 1rem;
}

/* Form label styling - left aligned, small */
.login-form .form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    margin-bottom: 0.25rem;
}

/* Form input styling - small size, left aligned */
.login-form .form-control {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
    text-align: left;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #1254a1;
    box-shadow: 0 0 0 3px rgba(18, 84, 161, 0.1);
}

.login-form .form-control::placeholder {
    color: #999;
    font-weight: 400;
}

/* Form options container - Remember me and Forgot password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Remember me checkbox container */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Remember me checkbox styling */
.remember-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #1254a1;
}

/* Remember me label styling */
.remember-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin: 0;
}

/* Forgot password link styling */
.forgot-password {
    font-size: 0.8rem;
    font-weight: 400;
    color: #1254a1;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0d4a8a;
    text-decoration: underline;
}

/* Login button styling */
.login-button {
    width: 100%;
    padding: 0.65rem 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: #1254a1;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #0d4a8a;
}

.login-button:active {
    background-color: #0a3d73;
}

/* Registration prompt styling */
.register-prompt {
    text-align: center;
    margin-top:0.75rem;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
}

.register-text {
    color: #666;
    font-weight: 400;
}

.register-link {
    color: #1254a1;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #0d4a8a;
    text-decoration: underline;
}

/* ============================================
   RIGHT SECTION - BLUE BACKGROUND
   ============================================ */
/* Right column with blue background and background image */
.blue-section {
    height: 100%;
    background-color: #1254a1;
    background: linear-gradient(135deg, #1255a1d6 0%, #1254a1 100%), url('../../Common-Components/asserts/Assetbg 1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 60%;
    position: relative;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border: 1px solid #ffffff;
    z-index: 0;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 34, 58, 0.35);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1400;
}

.loading-overlay.open {
	display: flex;
}

.loading-box {
	width: min(420px, 90vw);
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 22px 44px rgba(15, 34, 58, 0.22);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	text-align: center;
}

.loading-spinner {
	width: 44px;
	height: 44px;
	border: 4px solid #e6e8ef;
	border-top-color: #1254a1;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	box-shadow: 0 0 0 1px rgba(18, 84, 161, 0.06) inset;
}

.loading-text {
	font-family: 'DM Sans', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #0f223a;
	letter-spacing: 0.01em;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ============================================
   PAGE TRANSITION (fade overlay)
   ============================================ */
.page-transition-layer {
	position: fixed;
	inset: 0;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	z-index: 1600;
	transform: scale(1);
}
.page-transition-layer.open {
	opacity: 1;
	pointer-events: auto;
	animation: overlayIn 0.4s ease forwards;
}

@keyframes overlayIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Mobile devices - Hide right section and make left section full width */
@media (max-width: 768px) {
    /* Main container - allow height to adjust to content */
    .main-container {
        padding: 0.5rem;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Glassy container - adjust to content height */
    .glassy-container {
        padding: 0.5rem;
        height: auto;
        width: 100%;
        
    }
    
    /* Main wrapper - adjust to content height */
    .main-wrapper {
        height: auto;
    }
    
    /* Hide the right section on mobile */
    .blue-section {
        display: none;
    }
    
    /* Make login section full width on mobile and adjust height */
    .login-section {
        width: 100% !important;
        height: auto;
    }
    
    /* Row - remove full height on mobile */
    .row.h-100 {
        height: auto !important;
    }
    
    /* Update inner container - adjust to content height */
    .inner-container {
        border-radius: 20px;
        padding: 1.5rem;
        height: auto;
        min-height: auto;
        display: block;
    }
    
    /* Centered content - change from absolute to relative positioning on mobile */
    .centered-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Adjust heading size for mobile - increased */
    .login-heading {
        font-size: 3rem;
    }
    
    /* Adjust logo icon size for mobile - increased */
    .logo-icon {
        width: 130px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .inner-container {
        padding: 1rem;
    }
    
    /* Adjust main container padding for small mobile */
    .main-container {
        padding: 0.25rem;
    }
    
    /* Adjust glassy container padding for small mobile */
    .glassy-container {
        padding: 0.25rem;
    }
    
    /* Adjust heading size for small mobile - increased */
    .login-heading {
        font-size: 1.7rem;
    }
    
    /* Adjust paragraph size */
    .login-paragraph {
        font-size: 0.9rem;
    }
    
    /* Adjust logo icon for small mobile - increased */
    .logo-icon {
        width: 120px;
    }
    
    /* Adjust form spacing */
    .login-form {
        max-width: 100%;
    }
    
    /* Adjust centered content padding for small mobile */
    .centered-content {
        padding: 0 0.5rem;
    }
}

