
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    --color-bg-left: #ffffff;
    --color-bg-right: #f6f6f8; /* Soft cool light grey */
    --color-text-primary: #1c1c1e;
    --color-text-muted: #6e6e73;
    --color-text-disabled: #8e8e93;
    --color-text-light: #a1a1a6;
    
    --color-border-input: #d1d1d6;
    --color-border-input-focus: #1c1c1e;
    --color-btn-submit: #535256; /* Dark slate grey matching Figma */
    --color-btn-submit-hover: #3d3c40;
    --color-btn-google: #f4f5f7;
    --color-btn-google-hover: #eaeaee;
    
    /* Layout */
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-left);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Base Link Styling */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    width: 100%;
}

/* Form Panel */
.login-form-side {
    background-color: var(--color-bg-left);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    width: 100%;
}

.form-content-wrapper {
    width: 100%;
    max-width: 410px; /* Precise, elegant form width */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

/* Visual Panel (Desktop Only) */
.login-visual-side {
    display: none; /* Mobile first: hidden by default */
    background-color: var(--color-bg-right);
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}


.branding-header {
    margin-top: auto; /* Push down to sit balanced in vertical flex flow */
    margin-bottom: 54px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.subtitle {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.45;
}

/* Input Fields */
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 38px;
    display: flex;
    flex-direction: column;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.input-label-row label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-text-disabled);
    text-transform: uppercase;
}

.forgot-password-link {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-disabled);
    transition: var(--transition-fast);
}

.forgot-password-link:hover {
    color: var(--color-text-primary);
}

.input-group input {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border-input);
    padding: 2px 0 10px 0;
    width: 100%;
    outline: none;
    transition: var(--transition-fast);
}

.input-group input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
    font-weight: 300;
}

.input-group input[type="password"]::placeholder {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.input-group input:focus {
    border-bottom-color: var(--color-border-input-focus);
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-actions p {
    margin-left: 50%;
}



button {
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sign In (Primary Dark Button) */
.btn-submit {
    background-color: var(--color-btn-submit);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(83, 82, 86, 0.08);
}

.btn-submit:hover {
    background-color: var(--color-btn-submit-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(83, 82, 86, 0.15);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-google {
    appearance: none;
    border: none;
    background: #f5f5f5;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.btn-google:hover {
    background-color: var(--color-btn-google-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.toggle-password{
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    font-size: 13px;
    font-weight: 500;
    color: #777;

    cursor: pointer;
}

.btn-google:active {
    transform: translateY(0);
}

.google-icon {
    flex-shrink: 0;
}


.signup-prompt {
    text-align: center;
    margin-top: 42px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.create-account-link {
    color: var(--color-text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--color-text-primary);
    padding-bottom: 1px;
}

.create-account-link:hover {
    color: var(--color-text-muted);
    border-bottom-color: var(--color-text-muted);
}

/* Footer Section */
.form-footer {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: auto; /* Push down to bottom of wrapper flex container */
    padding-top: 60px;
}

.footer-link {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
}

.footer-link:hover {
    color: var(--color-text-muted);
}


.visual-card {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    background-color: #ececef;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    /* Clean micro-animation to float slightly on load */
    animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-card:hover img {
    transform: scale(1.03);
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (min-width: 901px) {
    .login-container {
        grid-template-columns: 1.15fr 0.85fr;
    }
    
    .login-form-side {
        padding: 60px 80px;
    }
    
    .login-visual-side {
        display: flex; /* Unhide visual container */
        height: 100vh;
        position: sticky;
        top: 0;
    }
    
    .form-content-wrapper {
        /* Standard height centering */
        min-height: calc(100vh - 120px);
    }
}

@media screen and (min-width: 1200px) {
    .login-form-side {
        padding: 60px 120px;
    }
    
    .login-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

@media screen and (max-height: 680px) and (min-width: 901px) {
    .form-content-wrapper {
        min-height: auto;
    }
    .branding-header {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .form-footer {
        margin-top: 40px;
        padding-top: 20px;
    }
}



