/* Reset and Base Styles */
html {
    height: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Page Container - Split Screen Layout */
.page-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Left Side - Login Form */
.left-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 2rem;
    min-width: 0;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.logo {
    width: 167px;
    height: auto;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #050505;
    text-align: center;
    margin: 0;
}

/* Login Card */
.login-card {
    width: 100%;
    max-width: 377px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 3px 19px 6px rgba(0, 0, 0, 0.04);
    border-radius: 7px;
    padding: 33px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Input Field */
.input-field {
    width: 100%;
    padding: 7px 13px;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #767676;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: #1a1a1a;
}

.input-field::placeholder {
    color: #767676;
}

/* Buttons */
.button-primary {
    width: 100%;
    padding: 7px 13px;
    background-color: #1a1a1a;
    border: none;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0;
}

.button-primary:hover {
    background-color: #333333;
}

.button-primary:active {
    background-color: #000000;
}

.button-sso {
    width: 100%;
    padding: 7px 13px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.button-sso:hover {
    background-color: #f9f9f9;
    border-color: #cccccc;
}

.button-sso:active {
    background-color: #f0f0f0;
}

.sso-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.forgot-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 7px;
}

.forgot-password-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background-color: #e6e6e6;
    margin: 15px 0;
}

/* Right Side - Marketing Content */
.right-side {
    flex: 1;
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 100px;
    gap: 20px;
}

/* Globe Background */
.globe-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/oauth2/static/altana-network-globe.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* UI Elements SVG */
.ui-elements {
    position: relative;
    pointer-events: none;
}

.ui-svg {
    width: 568px;
    height: auto;
    display: block;
}

/* Marketing Text */
.marketing-text {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketing-headline {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 34px;
    letter-spacing: -0.96px;
    color: #050505;
    margin: 0 0 8px 0;
}

.marketing-description {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.33px;
    color: #050505;
    margin: 0;
}

.marketing-cta {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.33px;
    color: #050505;
    margin: 0;
}

.learn-more-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px;
    width: 125px;
    background-color: #046ecc;
    border: none;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.learn-more-button:hover {
    background-color: #0589ff;
}

.learn-more-button:active {
    background-color: #035aa3;
}

.learn-more-button span {
    text-align: center;
    width: 100%;
}

.learn-more-icon {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.learn-more-icon svg {
    width: 16px;
    height: 16px;
}

/* Modal Styles (for login blocking feature) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background-color: #ffffff;
    color: #050505;
    padding: 2rem;
    border-radius: 7px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e6e6e6;
}

.modal-message {
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    font-size: 1rem;
    color: #050505;
    font-family: 'Inter', sans-serif;
}

.modal-close-button {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    min-width: 100px;
    transition: background-color 0.2s;
}

.modal-close-button:hover {
    background-color: #333333;
}

/* Responsive: Hide right side on screens <= 1000px */
@media (max-width: 1000px) {
    .right-side {
        display: none;
    }

    .left-side {
        flex: 1;
        width: 100%;
    }

    .login-content {
        max-width: 500px;
    }
}

/* Responsive: Adjust for very small screens */
@media (max-width: 480px) {
    .left-side {
        padding: 1rem;
    }

    .login-card {
        padding: 20px;
    }

    .tagline {
        font-size: 18px;
    }

    .logo {
        width: 140px;
    }
}
