* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #EC7E01;
    --text-color: #000000;
    --text-secondary: #7D7D7D;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --border-radius: 8px;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    justify-content: space-between;
}

/* Left Side */
.left-side {
    flex: 1.5;
    background-color: var(--primary-color);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.camera-overlay {
    position: absolute;
    right: -30%;
    top: 50%;
    transform: translateY(-50%) rotate(22deg);
    opacity: 0.04;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    z-index: 1;
}

.logo {
    z-index: 2;
    position: relative;
    text-align: center;
}

.logo img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.logo p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Right Side */
.right-side {
    flex: 1;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-width: 0;
    z-index: 2; /* Ensure this is above the camera overlay */
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 400;
}

.login-container h2 strong {
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.input-group input,
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

.input-group input:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(236, 126, 1, 0.2);
}

.input-group input::placeholder,
input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.remember-me label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
}

.forgot-password {
    text-align: right;
    margin: 15px 0 25px;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.login-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #d67101;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 126, 1, 0.3);
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: none;
        margin: 0;
    }
    
    .left-side {
        padding: 4rem;
        min-height: 100vh;
        background-color: var(--primary-color) !important;
        width: 100%;
    }
    
    .right-side {
        padding: 4rem;
    }
    
    .form-group input {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .logo h1 {
        font-size: 3rem;
    }
    
    .logo p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: none;
        margin: 0;
    }
    
    .left-side {
        padding: 5rem;
        min-height: 100vh;
        background-color: var(--primary-color) !important;
        width: 100%;
    }
    
    .right-side {
        padding: 5rem;
    }
    
    .form-group input {
        padding: 1.2rem 1.8rem;
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .logo h1 {
        font-size: 3.5rem;
    }
    
    .logo p {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body, html {
        overflow: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-side {
        flex: none;
        height: 40vh;
        min-height: 300px;
        order: 2;
    }

    .right-side {
        flex: none;
        height: 60vh;
        min-height: 400px;
        order: 1;
        padding: 2rem 1rem;
    }

    .camera-overlay {
        right: -20%;
        transform: translateY(-50%) rotate(15deg);
        opacity: 0.06;
    }

    .login-container {
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        flex-direction: row;
    }

    .left-side {
        flex: 1;
    }

    .right-side {
        flex: 1.2;
        padding: 30px;
    }

    .login-container {
        max-width: 350px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .login-container h2 {
        font-size: 22px;
    }
}


.logo p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 30px;
}

h2 strong {
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(236, 126, 1, 0.2);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    margin: 10px 0 20px;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.login-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #d67101;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 126, 1, 0.3);
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    margin: 10px 0 20px;
    .left-side {
        flex: 0 0 30%;
        width: 100%;
        order: 2;
    }
    
    .right-side {
        flex: 0 0 70%;
        width: 100%;
        order: 1;
        padding: 20px;
    }
    
    .camera-overlay {
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(22deg);
        width: 150%;
        height: 150%;
    }
    
    .login-container {
        max-width: 100%;
        padding: 10px;
    }
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}


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


.login-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}


.login-button:hover {
    background-color: #d67101;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 126, 1, 0.3);
}


/* Responsive Design */
@media (max-width: 768px) {
    body, html {
        overflow: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-side {
        flex: none;
        height: 40vh;
        min-height: 300px;
        order: 2;
    }

    .right-side {
        flex: none;
        height: 60vh;
        min-height: 400px;
        order: 1;
        padding: 2rem 1rem;
    }

    .camera-overlay {
        right: -20%;
        transform: translateY(-50%) rotate(15deg);
        opacity: 0.06;
    }

    .logo img {
        width: 120px;
        height: auto;
    }

    .logo h1 {
        font-size: 24px;
    }

    .logo p {
        font-size: 14px;
    }

    .login-container {
        max-width: 100%;
        padding: 1.5rem;
    }

    .login-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    /* Previne o zoom automático em inputs no iOS definindo font-size >= 16px */
    .input-group input,
    input[type='text'],
    input[type='email'],
    input[type='password'],
    input[type='search'],
    input[type='tel'],
    input[type='url'],
    textarea,
    select {
        padding: 0.75rem;
        font-size: 16px;
    }

    .login-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Correção para o input de chat na página de áudio */
    .chat-input {
        font-size: 16px !important; /* Previne zoom no iOS */
    }

    .chat-input::placeholder {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Correção para o input de pesquisa no WhatsApp - garante padding correto para o ícone */
    .search-input {
        padding: 14px 30px 14px 58px !important; /* Força o padding correto para não sobrepor a lupa */
        font-size: 16px !important; /* Previne zoom no iOS */
    }

    .forgot-password {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        flex-direction: row;
    }

    .left-side {
        flex: 1;
    }

    .right-side {
        flex: 1.2;
        padding: 30px;
    }

    .login-container {
        max-width: 350px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .login-container h2 {
        font-size: 22px;
    }
}

