:root {
    --bg-color: #fafafa;
    --border-color: #dbdbdb;
    --button-bg: #0095f6;
    --button-hover: #1877f2;
    --link-color: #00376b;
    --text-primary: #262626;
    --text-secondary: #737373;
    --facebook-color: #385185;
    --input-bg: #fafafa;
    --input-border: #dbdbdb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 32px;
    flex-grow: 1;
    max-width: 935px;
    margin: 0 auto;
    width: 100%;
}

/* Phone Mockup */
.phone-display {
    height: 581px;
    flex-basis: 380px;
    margin-bottom: 12px;
    display: none; /* Hidden by default on mobile */
}

@media (min-width: 876px) {
    .phone-display {
        display: block;
    }
}

.phone-display img {
    height: 100%;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    width: 350px;
    gap: 10px;
    justify-content: center;
}

/* Panels (Login/Signup) */
.panel {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

.login-panel {
    padding: 20px 40px;
}

.signup-panel {
    padding: 20px;
    font-size: 14px;
}

.logo-container {
    margin-top: 26px;
    margin-bottom: 30px;
}

.logo-container img {
    width: 175px;
}

/* Form Styles */
.inputs-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 12px;
    outline: none;
    line-height: 18px;
    color: var(--text-primary);
}

input:focus {
    border-color: #a8a8a8;
}

#login-btn {
    width: 100%;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 15px;
    transition: background-color 0.2s;
}

#login-btn:hover {
    background-color: var(--button-hover);
}

#login-btn:disabled {
    background-color: rgba(0, 149, 246, 0.3);
    cursor: default;
}

/* Divider OR */
.divider {
    display: flex;
    align-items: center;
    margin: 10px 0 18px 0;
}

.divider .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider .or-text {
    margin: 0 18px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

/* Facebook Login */
.facebook-login {
    margin: 8px 0;
}

.facebook-login a {
    color: var(--facebook-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fb-logo-img {
    height: 20px;
    width: 20px;
}

/* Forgot Password */
.forgot-password {
    margin-top: 12px;
    margin-bottom: 10px;
}

.forgot-password a {
    color: var(--link-color); /* Instagram link color */
    font-size: 12px;
}

.signup-panel p {
    color: var(--text-primary);
}

.signup-panel a {
    color: var(--button-bg);
    font-weight: 600;
    margin-left: 5px;
}

/* App Download */
.app-download-section {
    text-align: center;
    padding: 10px;
}

.app-download-section p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.store-links img {
    height: 40px;
}

/* Footer */
footer {
    padding: 0 16px;
    margin-bottom: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    max-width: 1000px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.language-select {
    color: var(--text-secondary);
    border: none;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 450px) {
    .main-container {
        padding-top: 0;
        margin-top: 0;
        gap: 0;
    }
    
    .right-column {
        width: 100%;
        gap: 0;
    }

    .panel {
        border: none;
        background-color: transparent;
    }

    .login-panel {
        padding: 40px 16px 20px 16px;
    }

    footer {
        margin-bottom: 24px;
    }
    
    .inputs-container {
        gap: 8px;
    }

    input {
        padding: 10px 12px;
    }
}
