* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Tahoma', Geneva, Verdana, sans-serif;
    background: #f5e8dc;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.login-container {
    width: 900px;
    height: 550px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.login-left {
    width: 35%;
    background: linear-gradient(135deg, #ab644c 0%, #dfaa95 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.welcome-title {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.access-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    max-width: 180px;
}

.login-right {
    width: 65%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f5e8dc;
}

.login-header {
    margin-bottom: 30px;
}

.login-subtitle {
    font-size: 24px;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-description {
    font-size: 14px;
    color: #718096;
}

.input-group {
    margin-bottom: 20px;
    
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

/* Wrapper para ícone e input */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #7e848b;
    font-size: 16px;
    pointer-events: none;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #7e848b;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    background: #f5e8dc;
}

.input-icon-wrapper input:focus {
    border-color: #ab644c;
    box-shadow: 0 0 0 3px rgba(171, 100, 76, 0.2);
}

.input-icon-wrapper input::placeholder {
    color: #7e848b;
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 12px;
    color: #7e848b;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: black;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #ab644c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.login-button:hover {
    background: #8f523d;
}

.login-button:active {
    transform: scale(0.98);
}

.error-message {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    min-height: 40px;
    color: #e53e3e;
}

/* Botão de fechar */
.close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 1000;
    font-family: monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.close-button:hover {
    background: #c53030;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-button:active {
    transform: scale(0.95);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
        min-height: 100%;
    }

    body {
        overflow: auto;
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 18px 12px;
    }

    .login-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 0;
        margin: 20px auto;
        display: block;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-left {
        padding: 28px 18px;
    }

    .login-right {
        padding: 28px 18px;
    }

    .close-button {
        top: 12px;
        right: 12px;
    }
}

.login-update-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.login-update-overlay.hidden {
    display: none;
}

.login-update-modal {
    width: 420px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-update-header {
    background: linear-gradient(180deg, #ab644c 0%, #8f523d 100%);
    color: white;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-update-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-update-header i {
    font-size: 22px;
}

.login-update-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.login-update-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.login-update-close:hover {
    background: rgba(255,255,255,.2);
}

.login-update-body {
    padding: 22px;
    color: #475569;
    line-height: 1.6;
}

.login-update-detail {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.login-update-footer {
    padding: 0 22px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.login-update-primary,
.login-update-secondary {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.login-update-primary {
    background: #2E8B57;
    color: white;
}

.login-update-secondary {
    background: #64748b;
    color: white;
}
