:root {
    /* Fonts */
    --amd-font-family: 'BoldItalic';
    --amd-tittle-font-family: 'BlackItalic';

    /* Background */
    --amd-body-bg: #040216d4;

    /* =========================================
       PRIMARY COLOR SYSTEM (AUTO GENERATED)
    ========================================== */
    --amd-primary: #ffffff;
    /* Change only this */
    --amd-primary-light: color-mix(in oklch, var(--amd-primary) 60%, white);
    --amd-fade-primary: color-mix(in oklch, var(--amd-primary) 12%, transparent);

    /* =========================================
       SECONDARY COLOR SYSTEM (AUTO GENERATED)
    ========================================== */
    --amd-secondary: #002a7c;
    /* Change only this */
    --amd-secondary-light: color-mix(in oklch, var(--amd-secondary) 70%, white);
    --amd-fade-secondary: color-mix(in oklch, var(--amd-secondary) 25%, transparent);

    /* =========================================
       OTHER COLORS (NO CHANGE)
    ========================================== */
    --amd-preload: #000000;

    --amd-dark: #231d29;
    --amd-dark-light: color-mix(in oklch, var(--amd-dark) 40%, white);

    --amd-light: #ffffff;
    --amd-border: #d1d5db;
    --amd-muted: #636363;

    --amd-navbar-top-bg: #2d3436;
    --amd-navbar-top-text: #fbfbfb;
    --amd-nav-menu-bg: #424242;
    --amd-nav-menu-text: #f1f1f1;
}


/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--amd-font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background-image: url(https://media.istockphoto.com/id/1919863292/photo/e-learning-education-internet-lessons-and-online-learning-with-webinars-video-tutorials.jpg?s=612x612&w=0&k=20&c=zWAqp6FGH-zm6b0Os_CssxubtrgKh1MyFeMgelFZbOg=); */
    background-size: cover;
    background-position: center;
    color: var(--amd-light);
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* 🔥 Dark Overlay + Blur */
body::before {
    content: "";
    position: absolute;
    inset: 0;

    /* background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(6px);     */

    z-index: -1;
}

a {
    text-decoration: none;
}

/* Main Container for the two-column layout */
.amd-lms-login-main-container {
    display: flex;
    width: 70vw;
    max-width: 1100px;
    min-height: 100vh;
    max-height: 650px;
    margin: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Left Side: Form Container Styling */
.amd-lms-login-form-container {
    flex: 1;
    /* padding-bottom: 40px; */
    display: flex;
    flex-direction: column;
    /* background: #3c5a96; */
    /* background: color-mix(in srgb, var(--amd-secondary) 20%, transparent); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Right Side: Image Container */
.amd-lms-login-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border-right: 1px solid color-mix(in srgb, var(--amd-light) 15%, transparent);
}

.amd-lms-login-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Controls */
.amd-lms-login-form-controls {
    display: flex;
    justify-content: center;
    /* margin-bottom: 30px; */
    /* border-bottom: 1px solid color-mix(in srgb, var(--amd-border) 25%, transparent); */
}

.amd-lms-login-control-btn {
    background: none;
    border: none;
    color: #a5a5a5;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--amd-font-family);
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.amd-lms-login-control-btn:hover {
    color: var(--amd-light);
}

.amd-lms-login-control-btn.amd-lms-login-active-btn {
    color: var(--amd-primary);
}

.amd-lms-login-control-btn.amd-lms-login-active-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--amd-primary);


}

 .amd-login-top-part{
        background: #002a7c;
        padding: 50px 30px 0px 30px;
    }

/* Forms Wrapper and Individual Forms */
.amd-lms-login-forms-wrapper {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.amd-lms-login-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-120%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease-in-out;
}
.amd-ethnicity-group label{
    margin-right: 10px;
    color: var(--amd-dark);
}
.amd-lms-login-form.amd-lms-login-active {
    opacity: 1;
    transform: translateY(0);
    /* margin-top: 25px; */
    padding: 20px 20px;
}

/* CSS Grid Layout for Form Fields */
.grid-container {
  display: grid;
  gap: 0rem;
  grid-template-columns: 1fr;
}

.grid-row {
  display: grid;
  gap: .7rem;
}

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

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

.grid-1 {
  grid-template-columns: 1fr;
}

/* Responsive Grid */
/* @media (min-width: 992px) and (max-width: 1199px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
} */

@media (max-width: 668px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}
/* Override max-width for grid items to fill columns */
.grid-row .amd-lms-login-input-group {
  max-width: none;
  width: 100%;
}


/* Thin scrollbar for register form */
.amd-lms-login-form::-webkit-scrollbar {
    width: 6px;
}

.amd-lms-login-form::-webkit-scrollbar-track {
    background: var(--amd-dark-light);
    border-radius: 10px;
}

.amd-lms-login-form::-webkit-scrollbar-thumb {
    background: var(--amd-muted);
    border-radius: 10px;
}

.amd-lms-login-form::-webkit-scrollbar-thumb:hover {
    background: var(--amd-primary);
}

.amd-lms-login-form {
    scrollbar-width: thin;
    scrollbar-color: var(--amd-secondary) var(--amd-dark-light);
}

.amd-lms-login-form h2 {
    font-family: var(--amd-tittle-font-family);
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--amd-dark);
}

.amd-lms-login-form p {
    color: var(--amd-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Input Group and Floating Label */
.amd-lms-login-input-group {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-bottom: 25px;
}

.amd-lms-login-input-group input,
.amd-lms-login-input-group select {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff36;
    border: 1px solid var(--amd-primary-light);
    border: 1px solid #00164578;
    color: var(--amd-dark);
    font-weight: bold;
    font-size: 1.1rem;
    font-family: var(--amd-font-family);
}

.amd-lms-login-input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23acacac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.amd-lms-login-input-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--amd-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.amd-lms-login-input-group input:focus + label,
.amd-lms-login-input-group input:not(:placeholder-shown) + label,
.amd-lms-login-input-group select:focus + label,
.amd-lms-login-input-group select:not([value=""]) + label {
    top: -8px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0 5px;
    background: #ffffff;
    /* border-top: 1px solid var(--amd-primary-light); */
    /* border-left: 1px solid var(--amd-primary-light); */
    border-right: 1px solid var(--amd-primary-light);
    color: #000741;
}

.amd-lms-login-input-group input:focus,
.amd-lms-login-input-group select:focus {
    outline: none;
    border-color: rgb(0, 9, 141);
}

.amd-lms-login-input-group select option {
    background: var(--amd-dark);
    color: var(--amd-light);
    padding: 10px;
}

/* Submit Button */
.amd-lms-login-submit-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    border: none;

    background: var(--amd-secondary);
    color: var(--amd-light);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--amd-tittle-font-family);
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.amd-lms-login-submit-btn:hover {
    background: var(--amd-secondary);
    color: var(--amd-light);
}


.amd-lms-login-image-container{
    background:#ffffff;
    border-left: 1px solid color-mix(in srgb, var(--amd-secondary) 15%, transparent);
    padding: 0 20px 20px 20px;
}
.amd-right-side-content{
    margin-top: 40px;
}
/* ================================================================ */
/* ==== UPDATED! RESPONSIVE STYLES FOR TABLET AND MOBILE ==== */
/* ================================================================ */


@media (max-width: 992px) {

    /* Hide the form container on small screens, showing only the image */
    .amd-lms-login-image-container {
        display: none;
    }

    /* Adjust the main container to frame the single image nicely */
    .amd-lms-login-main-container {
        width: 95vw;
        max-width: 400px;
        height: 100vh;
        max-height: 600px;
        margin: 20px 0;
    }
    .amd-lms-login-main-container-register{
        
        max-width: 670px !important;
      
    }
}

.amd-eye-toggle:hover {
    color: var(--amd-primary);
}