:root {
    --whatsapp-green: #ea580c;
    --whatsapp-dark-green: #c2410c;
    --whatsapp-light-green: #FFEAD5;
    --primary-text: #9a3412;
    --secondary-text: #4A4A4A;
    --light-text: #777;
    --border-color: #E0E0E0;
    --input-bg: #F5F5F5;
    --hover-color: #F2F2F2;
}

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

body {
    background-color: #F0F2F5;
    color: var(--secondary-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, var(--whatsapp-dark-green), var(--whatsapp-green));
    color: white;
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* Form Container */
.form-container {
    padding: 30px 40px;
}

.form-container h2 {
    font-size: 24px;
    color: var(--primary-text);
    margin-bottom: 25px;
    text-align: center;
}

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

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

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.input-with-icon .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: var(--whatsapp-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.remember-forgot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--whatsapp-green);
}

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

.login-btn {
    width: 100%;
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: var(--whatsapp-dark-green);
}

/* Status Info */
.status-info {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.status-info p {
    margin-bottom: 5px;
}

.status-info p:last-child {
    margin-bottom: 0;
}

.status-info i {
    margin-right: 5px;
}

.status-info.success {
    background-color: #FFEAD5;
    border-left: 4px solid #ea580c;
}

.status-info.error {
    background-color: #FFE5E5;
    border-left: 4px solid #FF5252;
}

/* Login Info */
.login-info-container {
    margin-bottom: 20px;
}

.login-info {
    background-color: rgba(234, 88, 12, 0.1);
    border-left: 4px solid var(--whatsapp-green);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.login-info p {
    margin-bottom: 5px;
}

.login-info p:last-child {
    margin-bottom: 0;
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background-color: rgba(234, 88, 12, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.server-status .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.server-status p {
    color: var(--secondary-text);
    font-weight: 500;
}

.server-status p span {
    color: #4CAF50;
    font-weight: 600;
}

/* Banner de instalação do aplicativo */
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.install-banner.show {
    opacity: 1;
    visibility: visible;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.install-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--primary-text);
}

.install-text p {
    font-size: 14px;
    color: var(--light-text);
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-button {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.install-button:hover {
    background-color: var(--whatsapp-dark-green);
}

.dismiss-button {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dismiss-button:hover {
    color: var(--secondary-text);
    border-color: var(--secondary-text);
}

/* Responsive Design */
@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
        max-width: 1000px;
    }
    
    .logo-section {
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px 20px;
    }
    
    .form-container {
        width: 60%;
        padding: 40px 50px;
    }
    
    .logo-image {
        max-width: 220px;
    }
}

@media (max-width: 767px) {
    .form-container {
        padding: 25px;
    }
    
    .logo-image {
        max-width: 180px;
    }
    
    .form-container h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-with-icon input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .logo-image {
        max-width: 150px;
    }
    
    .install-banner {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .install-content {
        width: 100%;
    }
    
    .install-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .install-button, .dismiss-button {
        flex: 1;
        text-align: center;
    }
}