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

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

    /* =========================================
       PRIMARY COLOR SYSTEM (AUTO GENERATED)
    ========================================== */
    --amd-primary: #cacaca;
    /* 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: #090089a6;
    /* 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: #acacac;

    --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-color: var(--amd-body-bg);
    color: var(--amd-light);
    background-image:
        radial-gradient(circle at 5% 15%, var(--amd-fade-primary), transparent 40%),
        radial-gradient(circle at 95% 85%, var(--amd-fade-secondary), transparent 40%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* Main Container for the two-column layout */

.amd-lms-login-main-container {
    display: flex;
    width: 70vw;
    max-width: 1100px;
    height: auto;
    min-height: 700px;
    max-height: none;
    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: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;           
    background: color-mix(in srgb, var(--amd-secondary) 20%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: auto;         
}


/* 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-form-container a{
    color: var(--amd-light);

}

.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: var(--amd-muted);
    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);


}

/* 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-lms-login-form.amd-lms-login-active {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* 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 {
    width: 100%;
    padding: 12px 15px;
    background: var(--amd-dark);
    border: 1px solid var(--amd-primary-light);
    color: var(--amd-light);
    font-size: 1.1rem;
    font-family: var(--amd-font-family);
}

.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 {
    top: -19px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0 5px;
    background: var(--amd-dark);
    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: var(--amd-primary);
}

.amd-lms-login-input-group input:focus {
    outline: none;
    border-color: var(--amd-primary);
}

/* 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-primary-light);
    color: var(--amd-dark);
}

/* ================================================================ */
/* ==== 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: 80vh;
        max-height: 600px;
        margin: 20px 0;
    }
}

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