/* Figma Login Design CSS - Your Exact Design */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600&display=swap');

/* Reset and base styles */
* {
    box-sizing: content-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #F9FAFB;
    overflow-x: hidden;
}

/* Main layout structure - Your exact HTML structure */
.main-layout {
    display: flex;
    min-height: 100vh;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    min-width: 580px;
    z-index: 2;
}

.logo-container {
    padding-top: 80px;
}

.logo {
    width: 395px;
    height: 55px;
    margin-bottom: 100px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.04);
    border: 1px solid #F5F5F5;
    padding: 40px 32px 70px 32px;
    width: 460px;
    display: flex;
    flex-direction: column;
}

/* Login title - Your exact HTML structure */
.login-title {
    color: #202020;
    font-size: 22px;
    font-weight: 600;
    word-wrap: break-word;
    padding-bottom: 12px;
    margin: 0;
}

.login-note {
    margin-bottom: 10px;
    color: #202020;
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
}

.login-note .required {
    color: #FF38BC;
}

/* Your form elements styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    position: relative;
}

.form-input {
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #BFC3CB;
    font-size: 14px;
    color: #020F59;
    font-family: 'Poppins', Arial, sans-serif;
    background: #fff;
    transition: border 0.2s;
    line-height: 24px;
    letter-spacing: 0.50px;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.form-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #020F59 !important;
}

.form-input:focus {
    outline: none;
    border: 1.5px solid #775DA6;
}

.form-label {
    color: #4A50B6;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    word-wrap: break-word;
    position: absolute;
    top: -12px;
    left: 16px;
    background-color: #fff;
    padding: 4px;
    z-index: 1;
    font-family: 'Poppins', Arial, sans-serif;
}

.form-label .required {
    color: #FF38BC;
}

.forgot-link {
    color: #4368FA;
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 40px;
    font-family: 'Poppins', Arial, sans-serif;
}

.login-btn {
    width: 100%;
    background: #775DA6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    word-wrap: break-word;
    font-family: 'Poppins', Arial, sans-serif;
}

.login-btn:hover {
    background: #6C47B6;
}

.login-btn img {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: middle;
}

/* Right panel - Background */
.right-panel {
    flex: 1.5;
    background: #F9FAFB;
    position: relative;
    overflow: hidden;
    min-width: 600px;
    background-image: url('../img/LinesGroup.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Password toggle styling */
.eyespan {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #BFC3CB;
    font-size: 16px;
}

.eyespan:hover {
    color: #775DA6;
}

/* Language dropdown styling */
.dropdown-btn {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #BFC3CB;
    background: #fff;
    color: #020F59;
    text-decoration: none;
    font-size: 14px;
    transition: border 0.2s;
    font-family: 'Poppins', Arial, sans-serif;
}

.nav__trigger:hover {
    border: 1.5px solid #775DA6;
}

.dropdown-icon {
    margin-left: 8px;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #BFC3CB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 1000;
    display: none;
}

.nav__dropdown--visible {
    display: block;
}

.nav__list {
    margin: 0;
}

.nav__list .menuitem {
    display: block;
    padding: 8px 16px;
    color: #020F59;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    font-family: 'Poppins', Arial, sans-serif;
}

.nav__list .menuitem:hover {
    background: #F9FAFB;
}

.nav__list.selected .menuitem {
    background: #775DA6;
    color: #fff;
}

/* Remember me checkbox */
.checkbox {
    display: flex;
    align-items: center;
}

.container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #020F59;
    font-family: 'Poppins', Arial, sans-serif;
}

.container input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #775DA6;
}

/* Registration section */
.registration-container {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #F5F5F5;
}

.registration {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #F5F5F5;
}

.registration span {
    color: #020F59;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif;
}

.registration a {
    color: #4368FA;
    text-decoration: none;
}

.registration a:hover {
    text-decoration: underline;
}

/* Error messages */
.error-message {
    color: #FF38BC;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Responsive design */
@media (max-width: 1100px) {
    .main-layout {
        flex-direction: column;
    }
    
    .right-panel {
        display: none;
    }
    
    .left-panel {
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .login-card {
        width: 95vw;
        padding: 24px 8px;
    }
    
    .logo {
        width: 200px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: #BFC3CB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #775DA6;
}