/* Authentication Layout Styles */

:root {
    --auth-bg-color: #242227;
    --auth-footer-bg: #ffffff;
    --auth-footer-border: #e0e0e0;
    --auth-footer-text: #666666;
    --logo-height-desktop: 50px;
    --logo-height-mobile: 40px;
    --footer-logo-height: 24px;
    --auth-widget-width: 600px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--auth-bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Container */
.auth-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--auth-bg-color);
}

/* Content wrapper - horizontal layout */
.auth-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
}

/* Left side container - holds logo and widget */
.auth-left-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    max-width: 50%;
}

/* Logo centered above widget */
.auth-logo {
    text-align: center;
    margin-bottom: 4rem;
}

.auth-logo img {
    height: var(--logo-height-desktop);
    width: auto;
}

/* Widget area */
.auth-content-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-widget-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-widget-wrapper {
    width: 100%;
    max-width: 440px;
}

/* Right side - Image takes remaining space */
.auth-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    min-width: 0;
}

.auth-image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* Footer */
.auth-footer {
    background-color: var(--auth-footer-bg);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--auth-footer-border);
}

.auth-footer-copyright {
    color: var(--auth-footer-text);
    font-size: 0.875rem;
    flex: 1;
    text-align: center;
}

.auth-footer-logo {
    height: var(--footer-logo-height);
    width: auto;
}

/* Tablet and smaller - hide image, center content */
@media (max-width: 1024px) {
    .auth-content-wrapper {
        justify-content: center;
    }

    .auth-left-container {
        width: 100%;
        max-width: 600px;
    }

    .auth-image-section {
        display: none;
    }

    .auth-widget-wrapper {
        max-width: 450px;
    }
}

/* Mobile - adjust spacing */
@media (max-width: 768px) {
    .auth-left-container {
        padding: 2rem 3rem;
    }

    .auth-logo {
        margin-bottom: 3rem;
    }

    .auth-logo img {
        height: var(--logo-height-mobile);
    }

    .auth-footer {
        padding: 0.75rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .auth-footer-logo {
        height: 20px;
    }
}

/* Phone - minimal spacing */
@media (max-width: 480px) {
    .auth-left-container {
        padding: 1.5rem 2rem;
    }

    .auth-logo {
        margin-bottom: 2rem;
    }

    .auth-widget-wrapper {
        max-width: 100%;
    }

    .auth-footer {
        padding: 0.625rem 1rem;
    }
}
