﻿.auth-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-image-section {
    width: 40%;
    min-height: 600px;
    background-image: url('/tenants/assets/auth-bubbles.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.auth-image-title {
    position: relative;
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
}

.auth-image-subtitle {
    position: relative;
    max-width: 400px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    z-index: 2;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(66, 192, 248, 0.40);
    z-index: 1;
}

.auth-form-section {
    flex: 1;
    padding: 40px;
}

.auth-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 30px;
}

.auth-form-section .mud-typography-h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.auth-form-section .mud-typography-h4 {
    font-size: 1.5rem;
}

.auth-form-section .mud-button-filled-primary {
    background-color: #0CA4E0 !important;
    color: white !important;
}

.auth-form-section .mud-button-filled-primary:hover {
    background-color: #5cb845 !important;
}

.auth-form-section .mud-input-control.mud-input-underline:after,
.auth-form-section .mud-input-control.mud-input-underline:before {
    border-bottom-color: #0CA4E0 !important;
}

.auth-form-section .mud-input-control.mud-input-underline.mud-focused:after {
    border-bottom-color: #0CA4E0 !important;
}

.auth-form-section .mud-primary-text {
    color: #0CA4E0 !important;
}

.auth-form-section .mud-input-filled:before {
    background-color: rgba(12, 164, 224, 0.09) !important;
}

.auth-form-section .mud-input-control .mud-input-slot {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-form-section .mud-field {
    overflow: hidden;
}

.auth-form-section .mud-field .mud-input-slot {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1920px) {
    .auth-card {
        max-width: 1400px;
    }

    .auth-image-title {
        font-size: 44px;
    }

    .auth-image-subtitle {
        font-size: 24px;
        max-width: 450px;
    }

    .auth-form-section {
        padding: 60px;
    }

    .auth-logo {
        max-width: 250px;
    }
}

@media (min-width: 1536px) and (max-width: 1919px) {
    .auth-card {
        max-width: 1300px;
    }

    .auth-image-title {
        font-size: 40px;
    }

    .auth-image-subtitle {
        font-size: 23px;
    }

    .auth-form-section {
        padding: 50px;
    }
}

@media (min-width: 1024px) and (max-width: 1535px) {
    .auth-card {
        max-width: 1000px;
    }

    .auth-image-section {
        width: 45%;
        min-height: 450px;
    }

    .auth-image-title {
        font-size: 32px;
    }

    .auth-image-subtitle {
        font-size: 18px;
        max-width: 350px;
    }

    .auth-form-section {
        padding: 40px 35px;
    }

    .auth-logo {
        max-width: 200px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .auth-card {
        max-width: 600px;
    }

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

    .auth-form-section {
        width: 100%;
        padding: 50px 40px;
    }

    .auth-logo {
        max-width: 160px;
    }

    .auth-form-section .mud-typography-h2 {
        font-size: 2rem;
    }

    .auth-form-section .mud-typography-h4 {
        font-size: 1.25rem;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .auth-page {
        padding: 15px;
    }

    .auth-card {
        max-width: 100%;
    }

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

    .auth-form-section {
        width: 100%;
        padding: 40px 30px;
    }

    .auth-form-section .mud-typography-h2 {
        font-size: 1.75rem;
    }

    .auth-form-section .mud-typography-h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 639px) {
    .auth-page {
        padding: 0;
    }

    .auth-card {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

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

    .auth-form-section {
        width: 100%;
        padding: 30px 20px;
    }

    .auth-logo {
        max-width: 160px;
        margin-bottom: 25px;
    }

    .auth-form-section .mud-typography-h2 {
        font-size: 1.5rem;
    }

    .auth-form-section .mud-typography-h4 {
        font-size: 1rem;
    }
    
    .auth-form-section .mud-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .auth-form-section .mud-card-content {
        padding: 0 !important;
    }

    .auth-form-section .mud-card-actions {
        padding: 16px 0 !important;
    }
}