/* Login page, same layout and colors as the Hai-Nida login page */
:root {
    --primary-yellow: #ffd700;
    --primary-white: #ffffff;
    --primary-black: #000000;
    --light-grey: #f8f8f8;
    --medium-grey: #e5e5e5;
    --dark-grey: #666666;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--primary-white);
    color: var(--primary-black);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-page-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar: development team */
.login-team-sidebar {
    position: relative;
    flex: 0 0 260px;
    width: 260px;
    min-height: 100vh;
    padding: 1.5rem 0.5rem;
    background: #f5f5f5;
    border-right: 1px solid #eee;
    color: #363636;
    overflow: hidden;
    transition: flex-basis 0.2s, width 0.2s;
}

.login-team-sidebar.collapsed {
    flex-basis: 60px;
    width: 60px;
    padding: 1.5rem 0.2rem;
}

.login-team-toggle {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: none;
    background: transparent;
    color: #363636;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.login-team-content {
    margin-top: 2.5rem;
    text-align: center;
}

.login-team-sidebar.collapsed .login-team-content {
    display: none;
}

.login-team-member {
    margin-bottom: 1.5rem;
}

.login-team-member img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 20%;
}

.login-team-name {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.login-team-role {
    font-size: 0.75rem;
    color: #4a4a4a;
    line-height: 1.5;
}

/* Main content: left branding, right form */
.login-main {
    display: flex;
    flex: 1;
    min-width: 0;
}

.login-left-section {
    flex: 1.8;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: var(--primary-white);
}

.login-left-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.login-project-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

.login-main-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.login-description {
    margin: 0 0 2.5rem 0;
    font-size: 0.8125rem;
    color: #7a7a7a;
    line-height: 1.7;
    text-align: justify;
}

.login-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.login-logos-row img {
    height: auto;
    object-fit: contain;
}

.login-copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: #999;
    letter-spacing: 0.01em;
}

.login-right-section {
    flex: 1;
    min-width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--light-grey);
}

.login-form-card {
    width: 100%;
    max-width: 380px;
    padding: 2.5rem;
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-signin-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-form .field {
    margin-bottom: 0.75rem;
}

.login-form .label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.login-form .input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font: inherit;
    font-size: 1rem;
    color: var(--primary-black);
    background: var(--primary-white);
    border: 1px solid var(--medium-grey);
    border-radius: 8px;
    outline: none;
}

.login-form .input:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.login-error {
    min-height: 1.2em;
    margin: 0.25rem 0 0.75rem 0;
    font-size: 0.8rem;
    color: #f14668;
}

.login-signin-btn {
    width: 100%;
    padding: 0.75rem;
    font: inherit;
    font-weight: 600;
    color: var(--primary-white);
    background: var(--primary-black);
    border: 1px solid var(--primary-black);
    border-radius: 8px;
    cursor: pointer;
}

.login-signin-btn:hover {
    background: #333;
    border-color: #333;
}

.login-signin-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Phone and small tablet: stack the sections, hide the team sidebar */
@media (max-width: 900px) {
    .login-team-sidebar {
        display: none;
    }

    .login-main {
        flex-direction: column;
    }

    .login-left-section {
        padding: 2rem 1rem;
    }

    /* Sign in card first so it is visible without scrolling */
    .login-right-section {
        order: -1;
        min-width: 0;
        padding: 2rem 1rem;
    }

    .login-project-logo {
        width: 100px;
        margin-bottom: 1rem;
    }

    .login-logos-row {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
}
